social/mass_mailing_event_registra.../views/mailing_mailing_views.xml

35 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Tecnativa - Antonio Espinosa
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.ui.view" id="view_mail_mass_mailing_form">
<field name="name">Add event and exclude</field>
<field name="model">mailing.mailing</field>
<field name="inherit_id" ref="mass_mailing.mailing_mailing_view_form_full_width" />
<field name="arch" type="xml">
<field name="mailing_domain" position="attributes">
<attribute
name="context"
>{'search_default_not_opt_out': 1, 'exclude_mass_mailing': active_id}</attribute>
</field>
<notebook position="before">
<group>
<group>
<field name="event_id" />
</group>
<group>
<field
name="exclude_event_state_ids"
widget="many2many_tags"
options="{'no_create_edit': True}"
attrs="{'invisible': [('event_id', '=', False)]}"
/>
</group>
</group>
</notebook>
</field>
</record>
</odoo>