2015-08-28 11:15:50 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2016-08-08 13:14:37 +02:00
|
|
|
<!-- © 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). -->
|
2015-08-28 11:15:50 +02:00
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_form">
|
|
|
|
<field name="name">Partner Form with mailing contacts</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<div class="oe_right oe_button_box" position="inside">
|
|
|
|
<button name="%(mass_mailing.action_view_mass_mailing_contacts)d"
|
|
|
|
context="{'search_default_partner_id': active_id,
|
|
|
|
'default_partner_id': active_id}"
|
|
|
|
type="action"
|
|
|
|
class="oe_stat_button oe_inline"
|
|
|
|
icon="fa-envelope-o">
|
|
|
|
<field name="mass_mailing_contacts_count"
|
|
|
|
widget="statinfo"
|
|
|
|
string="Mailing lists"/>
|
|
|
|
</button>
|
2016-08-08 13:14:37 +02:00
|
|
|
<button name="%(mass_mailing.action_view_mail_mail_statistics)d"
|
|
|
|
context="{'search_default_partner_id': active_id,
|
|
|
|
'default_partner_id': active_id}"
|
|
|
|
type="action"
|
|
|
|
class="oe_stat_button oe_inline"
|
|
|
|
icon="fa-envelope-o">
|
|
|
|
<field name="mass_mailing_stats_count"
|
|
|
|
widget="statinfo"
|
|
|
|
string="Mass mailing stats"/>
|
|
|
|
</button>
|
2015-08-28 11:15:50 +02:00
|
|
|
</div>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_res_partner_filter" model="ir.ui.view">
|
|
|
|
<field name="name">Partner Search with mailing contacts</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/>
|
|
|
|
<field name="priority">20</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="category_id" position="after">
|
|
|
|
<field name="mass_mailing_contacts" string="Mailing List"
|
|
|
|
filter_domain="[('mass_mailing_contacts.list_id','ilike', self)]"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|