|
7 | 7 | <field name="model">base_multi_image.image</field>
|
8 | 8 | <field name="arch" type="xml">
|
9 | 9 | <form string="Image">
|
10 |
| - <group> |
11 |
| - <group |
12 |
| - string="Owner" |
13 |
| - attrs="{ |
14 |
| - 'invisible': [ |
15 |
| - ('show_technical', '=', False), |
16 |
| - ], |
17 |
| - }"> |
18 |
| - <field name="show_technical" invisible="True"/> |
19 |
| - <field name="owner_model"/> |
20 |
| - <field name="owner_id"/> |
21 |
| - <field name="sequence"/> |
22 |
| - </group> |
23 |
| - <group string="Name"> |
24 |
| - <field name="name"/> |
25 |
| - <field name="storage"/> |
26 |
| - <field name="extension"/> |
27 |
| - </group> |
28 |
| - </group> |
29 |
| - <group> |
30 |
| - <group string="Options"> |
31 |
| - <field |
32 |
| - name="url" |
33 |
| - attrs="{ |
34 |
| - 'invisible': [('storage', '!=', 'url')], |
35 |
| - 'required': [('storage', '=', 'url')], |
36 |
| - }" |
37 |
| - widget="url"/> |
38 |
| - <field |
39 |
| - name="path" |
| 10 | + <sheet> |
| 11 | + <group> |
| 12 | + <group |
| 13 | + string="Owner" |
40 | 14 | attrs="{
|
41 |
| - 'invisible': [('storage', '!=', 'file')], |
42 |
| - 'required': [('storage', '=', 'file')], |
43 |
| - }"/> |
44 |
| - <field name="filename" invisible="1"/> |
45 |
| - <field |
46 |
| - name="file_db_store" |
47 |
| - attrs="{ |
48 |
| - 'invisible': [('storage', '!=', 'db')], |
49 |
| - 'required': [('storage', '=', 'db')], |
50 |
| - }" |
51 |
| - filename="filename"/> |
| 15 | + 'invisible': [ |
| 16 | + ('show_technical', '=', False), |
| 17 | + ], |
| 18 | + }"> |
| 19 | + <field name="show_technical" invisible="True"/> |
| 20 | + <field name="owner_model"/> |
| 21 | + <field name="owner_id"/> |
| 22 | + <field name="sequence"/> |
| 23 | + </group> |
| 24 | + <group string="Name"> |
| 25 | + <field name="name"/> |
| 26 | + <field name="storage"/> |
| 27 | + <field name="extension"/> |
| 28 | + </group> |
| 29 | + </group> |
| 30 | + <group> |
| 31 | + <group string="Options"> |
| 32 | + <field |
| 33 | + name="url" |
| 34 | + attrs="{ |
| 35 | + 'invisible': [('storage', '!=', 'url')], |
| 36 | + 'required': [('storage', '=', 'url')], |
| 37 | + }" |
| 38 | + widget="url"/> |
| 39 | + <field |
| 40 | + name="path" |
| 41 | + attrs="{ |
| 42 | + 'invisible': [('storage', '!=', 'file')], |
| 43 | + 'required': [('storage', '=', 'file')], |
| 44 | + }"/> |
| 45 | + <field name="filename" invisible="1"/> |
| 46 | + <field |
| 47 | + name="file_db_store" |
| 48 | + attrs="{ |
| 49 | + 'invisible': [('storage', '!=', 'db')], |
| 50 | + 'required': [('storage', '=', 'db')], |
| 51 | + }" |
| 52 | + filename="filename"/> |
| 53 | + </group> |
| 54 | + <group string="Preview"> |
| 55 | + <field name="image_medium" |
| 56 | + widget="image" |
| 57 | + readonly="True" |
| 58 | + nolabel="1" /> |
| 59 | + </group> |
52 | 60 | </group>
|
53 |
| - <group string="Preview"> |
54 |
| - <field name="image_medium" |
55 |
| - widget="image" |
56 |
| - readonly="True" |
57 |
| - nolabel="1" /> |
| 61 | + <group string="Comments"> |
| 62 | + <field name="comments" nolabel="1" /> |
58 | 63 | </group>
|
59 |
| - </group> |
60 |
| - <group string="Comments"> |
61 |
| - <field name="comments" nolabel="1" /> |
62 |
| - </group> |
| 64 | + </sheet> |
63 | 65 | </form>
|
64 | 66 | </field>
|
65 | 67 | </record>
|
|
131 | 133 | <field name="name">Multi images</field>
|
132 | 134 | <field name="res_model">base_multi_image.image</field>
|
133 | 135 | <field name="view_mode">kanban,tree,form</field>
|
| 136 | + <field name="help">Click to add multiple image</field> |
134 | 137 | </record>
|
135 | 138 |
|
136 | 139 | <menuitem
|
137 | 140 | id="image_menu"
|
138 | 141 | action="image_action"
|
139 |
| - parent="base.menu_config"/> |
| 142 | + parent="base.menu_custom"/> |
140 | 143 |
|
141 | 144 | </data>
|
142 | 145 | </openerp>
|
0 commit comments