Merge PR #1162 into 16.0

Signed-off-by gurneyalex
pull/1306/head
OCA-git-bot 2024-01-10 15:55:25 +00:00
commit 12488958b1
1 changed files with 5 additions and 7 deletions

View File

@ -9,14 +9,12 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='attachment_ids']" position="after"> <xpath expr="//field[@name='attachment_ids']" position="after">
<field name="can_attach_attachment" invisible="1" /> <field name="can_attach_attachment" invisible="1" />
<div attrs="{'invisible': [('can_attach_attachment', '=', False)]}">
<br />
<field <field
name="object_attachment_ids" name="object_attachment_ids"
widget="many2many_checkboxes" widget="many2many_checkboxes"
domain="[('res_model', '=', model), ('res_id', '=', res_id)]" domain="[('res_model', '=', model), ('res_id', '=', res_id)]"
/> attrs="{'invisible': [('can_attach_attachment', '=', False)]}"
</div> />
</xpath> </xpath>
</field> </field>
</record> </record>