2021-01-26 15:06:17 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2017-06-14 20:47:41 +02:00
|
|
|
<!-- Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
|
|
|
Copyright 2015-16 Antonio Espinosa <antonio.espinosa@tecnativa.com>
|
|
|
|
Copyright 2015 Javier Iniesta <javieria@antiun.com>
|
|
|
|
Copyright 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
|
2020-02-10 11:40:11 +01:00
|
|
|
Copyright 2020 Tecnativa - Manuel Calero
|
2016-08-08 13:14:37 +02:00
|
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
2017-06-14 20:47:41 +02:00
|
|
|
<odoo>
|
2015-08-28 11:15:50 +02:00
|
|
|
|
2018-05-17 22:00:43 +02:00
|
|
|
<record model="ir.ui.view" id="view_partner_form">
|
|
|
|
<field name="name">Partner Form with mailing contacts</field>
|
|
|
|
<field name="model">res.partner</field>
|
2021-01-26 15:06:17 +01:00
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
|
|
<field
|
|
|
|
name="groups_id"
|
|
|
|
eval="[(4, ref('mass_mailing.group_mass_mailing_user'))]"
|
|
|
|
/>
|
2018-05-17 22:00:43 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<div name="button_box" position="inside">
|
2021-01-26 15:06:17 +01:00
|
|
|
<button
|
|
|
|
name="%(mass_mailing.action_view_mass_mailing_contacts)d"
|
|
|
|
context="{'search_default_partner_id': active_id,
|
2018-05-17 22:00:43 +02:00
|
|
|
'default_partner_id': active_id}"
|
2021-01-26 15:06:17 +01:00
|
|
|
type="action"
|
|
|
|
class="oe_stat_button oe_inline"
|
|
|
|
icon="fa-envelope-o"
|
|
|
|
>
|
|
|
|
<field
|
|
|
|
name="mass_mailing_contacts_count"
|
|
|
|
widget="statinfo"
|
|
|
|
string="Mailing contacts"
|
|
|
|
/>
|
2018-05-17 22:00:43 +02:00
|
|
|
</button>
|
2021-01-26 15:06:17 +01:00
|
|
|
<button
|
|
|
|
name="%(mass_mailing.mailing_trace_action)d"
|
|
|
|
context="{'search_default_partner_id': active_id,
|
2018-05-17 22:00:43 +02:00
|
|
|
'default_partner_id': active_id}"
|
2021-01-26 15:06:17 +01:00
|
|
|
type="action"
|
|
|
|
class="oe_stat_button oe_inline"
|
|
|
|
icon="fa-envelope-o"
|
|
|
|
>
|
|
|
|
<field
|
|
|
|
name="mass_mailing_stats_count"
|
|
|
|
widget="statinfo"
|
|
|
|
string="Mass mailing stats"
|
|
|
|
/>
|
2018-05-17 22:00:43 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</field>
|
|
|
|
</record>
|
2015-08-28 11:15:50 +02:00
|
|
|
|
2018-05-17 22:00:43 +02:00
|
|
|
<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>
|
2021-01-26 15:06:17 +01:00
|
|
|
<field name="inherit_id" ref="base.view_res_partner_filter" />
|
|
|
|
<field
|
|
|
|
name="groups_id"
|
|
|
|
eval="[(4, ref('mass_mailing.group_mass_mailing_user'))]"
|
|
|
|
/>
|
2018-05-17 22:00:43 +02:00
|
|
|
<field name="priority">20</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="category_id" position="after">
|
2021-01-26 15:06:17 +01:00
|
|
|
<field
|
|
|
|
name="mass_mailing_contact_ids"
|
|
|
|
string="Mailing List"
|
|
|
|
filter_domain="[('mass_mailing_contact_ids.list_ids','ilike', self)]"
|
|
|
|
/>
|
2018-05-17 22:00:43 +02:00
|
|
|
</field>
|
2015-08-28 11:15:50 +02:00
|
|
|
</field>
|
2018-05-17 22:00:43 +02:00
|
|
|
</record>
|
2015-08-28 11:15:50 +02:00
|
|
|
|
2017-06-14 20:47:41 +02:00
|
|
|
</odoo>
|