|
@ -7,59 +7,61 @@ |
|
|
<field name="model">base_multi_image.image</field> |
|
|
<field name="model">base_multi_image.image</field> |
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<form string="Image"> |
|
|
<form string="Image"> |
|
|
<group> |
|
|
|
|
|
<group |
|
|
|
|
|
string="Owner" |
|
|
|
|
|
attrs="{ |
|
|
|
|
|
'invisible': [ |
|
|
|
|
|
('show_technical', '=', False), |
|
|
|
|
|
], |
|
|
|
|
|
}"> |
|
|
|
|
|
<field name="show_technical" invisible="True"/> |
|
|
|
|
|
<field name="owner_model"/> |
|
|
|
|
|
<field name="owner_id"/> |
|
|
|
|
|
<field name="sequence"/> |
|
|
|
|
|
</group> |
|
|
|
|
|
<group string="Name"> |
|
|
|
|
|
<field name="name"/> |
|
|
|
|
|
<field name="storage"/> |
|
|
|
|
|
<field name="extension"/> |
|
|
|
|
|
</group> |
|
|
|
|
|
</group> |
|
|
|
|
|
<group> |
|
|
|
|
|
<group string="Options"> |
|
|
|
|
|
<field |
|
|
|
|
|
name="url" |
|
|
|
|
|
attrs="{ |
|
|
|
|
|
'invisible': [('storage', '!=', 'url')], |
|
|
|
|
|
'required': [('storage', '=', 'url')], |
|
|
|
|
|
}" |
|
|
|
|
|
widget="url"/> |
|
|
|
|
|
<field |
|
|
|
|
|
name="path" |
|
|
|
|
|
|
|
|
<sheet> |
|
|
|
|
|
<group> |
|
|
|
|
|
<group |
|
|
|
|
|
string="Owner" |
|
|
attrs="{ |
|
|
attrs="{ |
|
|
'invisible': [('storage', '!=', 'file')], |
|
|
|
|
|
'required': [('storage', '=', 'file')], |
|
|
|
|
|
}"/> |
|
|
|
|
|
<field name="filename" invisible="1"/> |
|
|
|
|
|
<field |
|
|
|
|
|
name="file_db_store" |
|
|
|
|
|
attrs="{ |
|
|
|
|
|
'invisible': [('storage', '!=', 'db')], |
|
|
|
|
|
'required': [('storage', '=', 'db')], |
|
|
|
|
|
}" |
|
|
|
|
|
filename="filename"/> |
|
|
|
|
|
|
|
|
'invisible': [ |
|
|
|
|
|
('show_technical', '=', False), |
|
|
|
|
|
], |
|
|
|
|
|
}"> |
|
|
|
|
|
<field name="show_technical" invisible="True"/> |
|
|
|
|
|
<field name="owner_model"/> |
|
|
|
|
|
<field name="owner_id"/> |
|
|
|
|
|
<field name="sequence"/> |
|
|
|
|
|
</group> |
|
|
|
|
|
<group string="Name"> |
|
|
|
|
|
<field name="name"/> |
|
|
|
|
|
<field name="storage"/> |
|
|
|
|
|
<field name="extension"/> |
|
|
|
|
|
</group> |
|
|
|
|
|
</group> |
|
|
|
|
|
<group> |
|
|
|
|
|
<group string="Options"> |
|
|
|
|
|
<field |
|
|
|
|
|
name="url" |
|
|
|
|
|
attrs="{ |
|
|
|
|
|
'invisible': [('storage', '!=', 'url')], |
|
|
|
|
|
'required': [('storage', '=', 'url')], |
|
|
|
|
|
}" |
|
|
|
|
|
widget="url"/> |
|
|
|
|
|
<field |
|
|
|
|
|
name="path" |
|
|
|
|
|
attrs="{ |
|
|
|
|
|
'invisible': [('storage', '!=', 'file')], |
|
|
|
|
|
'required': [('storage', '=', 'file')], |
|
|
|
|
|
}"/> |
|
|
|
|
|
<field name="filename" invisible="1"/> |
|
|
|
|
|
<field |
|
|
|
|
|
name="file_db_store" |
|
|
|
|
|
attrs="{ |
|
|
|
|
|
'invisible': [('storage', '!=', 'db')], |
|
|
|
|
|
'required': [('storage', '=', 'db')], |
|
|
|
|
|
}" |
|
|
|
|
|
filename="filename"/> |
|
|
|
|
|
</group> |
|
|
|
|
|
<group string="Preview"> |
|
|
|
|
|
<field name="image_medium" |
|
|
|
|
|
widget="image" |
|
|
|
|
|
readonly="True" |
|
|
|
|
|
nolabel="1" /> |
|
|
|
|
|
</group> |
|
|
</group> |
|
|
</group> |
|
|
<group string="Preview"> |
|
|
|
|
|
<field name="image_medium" |
|
|
|
|
|
widget="image" |
|
|
|
|
|
readonly="True" |
|
|
|
|
|
nolabel="1" /> |
|
|
|
|
|
|
|
|
<group string="Comments"> |
|
|
|
|
|
<field name="comments" nolabel="1" /> |
|
|
</group> |
|
|
</group> |
|
|
</group> |
|
|
|
|
|
<group string="Comments"> |
|
|
|
|
|
<field name="comments" nolabel="1" /> |
|
|
|
|
|
</group> |
|
|
|
|
|
|
|
|
</sheet> |
|
|
</form> |
|
|
</form> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
@ -131,12 +133,13 @@ |
|
|
<field name="name">Multi images</field> |
|
|
<field name="name">Multi images</field> |
|
|
<field name="res_model">base_multi_image.image</field> |
|
|
<field name="res_model">base_multi_image.image</field> |
|
|
<field name="view_mode">kanban,tree,form</field> |
|
|
<field name="view_mode">kanban,tree,form</field> |
|
|
|
|
|
<field name="help">Click to add an image attached to an specific record.</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
<menuitem |
|
|
<menuitem |
|
|
id="image_menu" |
|
|
id="image_menu" |
|
|
action="image_action" |
|
|
action="image_action" |
|
|
parent="base.menu_config"/> |
|
|
|
|
|
|
|
|
parent="base.menu_custom"/> |
|
|
|
|
|
|
|
|
</data> |
|
|
</data> |
|
|
</openerp> |
|
|
</openerp> |