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.

33 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. <openerp>
  5. <data>
  6. <record model="ir.ui.view" id="view_mail_mass_mailing_form">
  7. <field name="name">Add event and exclude</field>
  8. <field name="model">mail.mass_mailing</field>
  9. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_form"/>
  10. <field name="arch" type="xml">
  11. <field name="mailing_domain" position="attributes">
  12. <attribute name="context">{'search_default_not_opt_out': 1, 'exclude_mass_mailing': active_id}</attribute>
  13. </field>
  14. <notebook position="before">
  15. <group>
  16. <group>
  17. <field name="event_id"/>
  18. </group>
  19. <group>
  20. <field name="exclude_event_state_ids"
  21. widget="many2many_tags"
  22. options="{'no_create_edit': True}"
  23. attrs="{'invisible': [('event_id', '=', False)]}"/>
  24. </group>
  25. </group>
  26. </notebook>
  27. </field>
  28. </record>
  29. </data>
  30. </openerp>