[FIX] mail_attach_existing_attachment: fix wizard view

pull/1162/head
Anna Janiszewska 2023-06-12 10:35:21 +02:00 committed by OCA-git-bot
parent 7348bb9b82
commit e74620fc35
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>