|
1 |
| -<?xml version="1.0" encoding="UTF-8"?> |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
2 | 2 | <odoo>
|
3 | 3 | <record id="product_import_image_form_view" model="ir.ui.view">
|
4 | 4 | <field name="name">product.import.image.form</field>
|
5 | 5 | <field name="model">shopinvader.import.product_image</field>
|
6 | 6 | <field name="arch" type="xml">
|
7 | 7 | <form string="Import shopinvader product images">
|
8 | 8 | <header>
|
9 |
| - <field |
10 |
| - name="state" |
11 |
| - widget="statusbar" |
12 |
| - /> |
| 9 | + <field name="state" widget="statusbar" /> |
13 | 10 | </header>
|
14 | 11 | <sheet>
|
15 |
| - <div class="oe_button_box" name="active_button_box" attrs="{'invisible': [('id','=',False)]}"> |
16 |
| - <button class="oe_highlight" string="Import images" |
17 |
| - name="action_import" type="object" |
18 |
| - states="new" |
19 |
| - /> |
20 |
| - <button class="oe_highlight" string="Import images again" |
21 |
| - name="action_import" type="object" |
22 |
| - states="done" |
23 |
| - /> |
| 12 | + <div |
| 13 | + class="oe_button_box" |
| 14 | + name="active_button_box" |
| 15 | + attrs="{'invisible': [('id','=',False)]}" |
| 16 | + > |
| 17 | + <button |
| 18 | + class="oe_highlight" |
| 19 | + string="Import images" |
| 20 | + name="action_import" |
| 21 | + type="object" |
| 22 | + states="new" |
| 23 | + /> |
| 24 | + <button |
| 25 | + class="oe_highlight" |
| 26 | + string="Import images again" |
| 27 | + name="action_import" |
| 28 | + type="object" |
| 29 | + states="done" |
| 30 | + /> |
24 | 31 | </div>
|
25 | 32 | <field name="id" invisible="1" />
|
26 | 33 | <group name="main">
|
27 |
| - <field name="storage_backend_id"/> |
28 |
| - <field name="product_model"/> |
29 |
| - <field name="source_type"/> |
30 |
| - <field name="file_csv" filename="filename" |
31 |
| - attrs="{ |
| 34 | + <field name="storage_backend_id" /> |
| 35 | + <field name="product_model" /> |
| 36 | + <field name="source_type" /> |
| 37 | + <field |
| 38 | + name="file_csv" |
| 39 | + filename="filename" |
| 40 | + attrs="{ |
32 | 41 | 'required': [('source_type', '!=', 'external_storage')],
|
33 | 42 | 'invisible': [('source_type', '=', 'external_storage')]
|
34 |
| - }"/> |
35 |
| - <field name="source_zipfile" filename="filename" |
36 |
| - attrs="{ |
| 43 | + }" |
| 44 | + /> |
| 45 | + <field |
| 46 | + name="source_zipfile" |
| 47 | + filename="filename" |
| 48 | + attrs="{ |
37 | 49 | 'required': [('source_type', '=', 'zip_file')],
|
38 | 50 | 'invisible': [('source_type', '!=', 'zip_file')]
|
39 |
| - }"/> |
40 |
| - <field name="source_storage_backend_id" |
41 |
| - attrs="{ |
| 51 | + }" |
| 52 | + /> |
| 53 | + <field |
| 54 | + name="source_storage_backend_id" |
| 55 | + attrs="{ |
42 | 56 | 'required': [('source_type', '=', 'external_storage')],
|
43 | 57 | 'invisible': [('source_type', '!=', 'external_storage')],
|
44 |
| - }"/> |
45 |
| - <field name="external_csv_path" |
46 |
| - attrs="{ |
| 58 | + }" |
| 59 | + /> |
| 60 | + <field |
| 61 | + name="external_csv_path" |
| 62 | + attrs="{ |
47 | 63 | 'required': [('source_type', '=', 'external_storage')],
|
48 | 64 | 'invisible': [('source_type', '!=', 'external_storage')],
|
49 |
| - }"/> |
50 |
| - <field name="csv_header"/> |
51 |
| - <field name="csv_delimiter"/> |
52 |
| - <field name="overwrite"/> |
53 |
| - <field name="create_missing_tags"/> |
54 |
| - <field name="chunk_size"/> |
| 65 | + }" |
| 66 | + /> |
| 67 | + <field name="csv_header" /> |
| 68 | + <field name="csv_delimiter" /> |
| 69 | + <field name="overwrite" /> |
| 70 | + <field name="create_missing_tags" /> |
| 71 | + <field name="chunk_size" /> |
55 | 72 | </group>
|
56 | 73 | <separator string="Report" />
|
57 | 74 | <field name="report_html" nolabel="1" />
|
|
66 | 83 | <field name="name">product.import.image.tree</field>
|
67 | 84 | <field name="model">shopinvader.import.product_image</field>
|
68 | 85 | <field name="arch" type="xml">
|
69 |
| - <tree string="Import shopinvader product images" |
| 86 | + <tree |
| 87 | + string="Import shopinvader product images" |
70 | 88 | decoration-warning="state == 'scheduled'"
|
71 | 89 | decoration-success="state == 'done'"
|
72 | 90 | >
|
73 |
| - <field name="storage_backend_id"/> |
74 |
| - <field name="product_model"/> |
75 |
| - <field name="source_type"/> |
76 |
| - <field name="state"/> |
77 |
| - <field name="done_on"/> |
| 91 | + <field name="storage_backend_id" /> |
| 92 | + <field name="product_model" /> |
| 93 | + <field name="source_type" /> |
| 94 | + <field name="state" /> |
| 95 | + <field name="done_on" /> |
78 | 96 | </tree>
|
79 | 97 | </field>
|
80 | 98 | </record>
|
|
93 | 111 | parent="sale.product_menu_catalog"
|
94 | 112 | action="import_image_action"
|
95 | 113 | sequence="999"
|
96 |
| - /> |
| 114 | + /> |
97 | 115 |
|
98 | 116 | <record model="ir.ui.menu" id="menu_backend_shopinvader_image_import">
|
99 | 117 | <field name="name">Import product images</field>
|
100 |
| - <field name="parent_id" ref="shopinvader.menu_shopinvader_root"/> |
101 |
| - <field name="action" ref="import_image_action"/> |
102 |
| - <field name="sequence" eval="30"/> |
| 118 | + <field name="parent_id" ref="shopinvader.menu_shopinvader_root" /> |
| 119 | + <field name="action" ref="import_image_action" /> |
| 120 | + <field name="sequence" eval="30" /> |
103 | 121 | </record>
|
104 | 122 |
|
105 | 123 | </odoo>
|
0 commit comments