You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
974 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="0">
  4. <record model="ir.ui.view" id="email_compose_message_wizard_inherit_form">
  5. <field name="name">mail.compose.message.form (mail_attach_attachment)</field>
  6. <field name="model">mail.compose.message</field>
  7. <field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='attachment_ids']" position="after">
  10. <field name="can_attach_attachment" invisible="1"/>
  11. <div attrs="{'invisible': [('can_attach_attachment', '=', False)]}">
  12. <br />
  13. <field name="object_attachment_ids" widget="many2many_checkboxes" domain="[('res_model', '=', model), ('res_id', '=', res_id)]" />
  14. </div>
  15. </xpath>
  16. </field>
  17. </record>
  18. </data>
  19. </openerp>