mail_compose_message_view.xml 981 B

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Add mass mail campaign to the mail.compose.message form view -->
  5. <record model="ir.ui.view" id="email_compose_form_mass_mailing">
  6. <field name="name">mail.compose.message.form.mass_mailing</field>
  7. <field name="model">mail.compose.message</field>
  8. <field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//field[@name='notify']" position="after">
  11. <field name="mass_mailing_campaign_id" groups="mass_mailing.group_mass_mailing_campaign"
  12. attrs="{'invisible': [('composition_mode', '!=', 'mass_mail')]}"/>
  13. <field name="mass_mailing_name"
  14. attrs="{'invisible': [('composition_mode', '!=', 'mass_mail')]}"/>
  15. </xpath>
  16. </field>
  17. </record>
  18. </data>
  19. </openerp>