mirror of https://github.com/OCA/social.git
[IMP] mail_attach_existing_attachment_account: align with base module
We show the field with the same technique as in the base module, which improves the display, showing the label.pull/1508/head
parent
6df1e5ac16
commit
6d61a476eb
|
@ -13,14 +13,12 @@
|
|||
<field name="model" invisible="1" />
|
||||
<field name="res_id" invisible="1" />
|
||||
<field name="can_attach_attachment" invisible="1" />
|
||||
<div attrs="{'invisible': [('can_attach_attachment', '=', False)]}">
|
||||
<br />
|
||||
<field
|
||||
name="object_attachment_ids"
|
||||
widget="many2many_checkboxes"
|
||||
domain="[('res_model', '=', model), ('res_id', '=', res_id)]"
|
||||
/>
|
||||
</div>
|
||||
<field
|
||||
name="object_attachment_ids"
|
||||
widget="many2many_checkboxes"
|
||||
domain="[('res_model', '=', model), ('res_id', '=', res_id)]"
|
||||
attrs="{'invisible': [('can_attach_attachment', '=', False)]}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
Loading…
Reference in New Issue