[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
Stéphane Bidoul 2024-11-23 14:52:46 +01:00
parent 6df1e5ac16
commit 6d61a476eb
1 changed files with 6 additions and 8 deletions

View File

@ -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>