mirror of https://github.com/OCA/social.git
[FIX] mail_attach_existing_attachment: fix wizard view
parent
7348bb9b82
commit
e74620fc35
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue