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.

31 lines
1.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record model="ir.ui.view" id="view_mail_mass_mailing_form">
  6. <field name="name">Add event and exclude</field>
  7. <field name="model">mail.mass_mailing</field>
  8. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_form"/>
  9. <field name="arch" type="xml">
  10. <field name="mailing_domain" position="attributes">
  11. <attribute name="context">{'search_default_not_opt_out': 1, 'exclude_mass_mailing': active_id}</attribute>
  12. </field>
  13. <notebook position="before">
  14. <group>
  15. <group>
  16. <field name="event_id"/>
  17. </group>
  18. <group>
  19. <field name="exclude_event_state_ids"
  20. widget="many2many_tags"
  21. options="{'no_create_edit': True}"
  22. attrs="{'invisible': [('event_id', '=', False)]}"/>
  23. </group>
  24. </group>
  25. </notebook>
  26. </field>
  27. </record>
  28. </odoo>