6e50c7cb37
[IMP] mass_mailing_partner: Link mail statistics to partner
45 lines
1.8 KiB
XML
45 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- © 2015 Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
|
|
© 2015 Antonio Espinosa <antonioea@antiun.com>
|
|
© 2015 Javier Iniesta <javieria@antiun.com>
|
|
© 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
|
<openerp>
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_contact_tree">
|
|
<field name="name">mail.mass_mailing.contact.tree.partner</field>
|
|
<field name="model">mail.mass_mailing.contact</field>
|
|
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_tree"/>
|
|
<field name="arch" type="xml">
|
|
<field name="email" position="after">
|
|
<field name="partner_id"/>
|
|
</field>
|
|
<field name="email" position="attributes">
|
|
<attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
|
|
</field>
|
|
<field name="name" position="attributes">
|
|
<attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_contact_search">
|
|
<field name="name">Add partner search field and group by</field>
|
|
<field name="model">mail.mass_mailing.contact</field>
|
|
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_search"/>
|
|
<field name="arch" type="xml">
|
|
<field name="email" position="after">
|
|
<field name="partner_id"/>
|
|
</field>
|
|
<filter name="group_create_date" position="after">
|
|
<filter string="Partner"
|
|
name="group_partner"
|
|
context="{'group_by': 'partner_id'}"/>
|
|
</filter>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|