2021-01-27 15:12:25 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2018-03-19 16:41:26 +01:00
|
|
|
<!-- Copyright 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
|
2016-06-14 17:22:17 +02:00
|
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
2016-09-09 18:33:21 +02:00
|
|
|
<odoo>
|
2016-06-14 17:22:17 +02:00
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_form">
|
|
|
|
<field name="name">Partner Form with tracking emails</field>
|
|
|
|
<field name="model">res.partner</field>
|
2018-11-05 17:26:01 +01:00
|
|
|
<field name="priority">46</field>
|
2021-01-27 15:12:25 +01:00
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
2016-06-14 17:22:17 +02:00
|
|
|
<field name="arch" type="xml">
|
2016-09-09 18:33:21 +02:00
|
|
|
<div name="button_box" position="inside">
|
2021-01-27 15:12:25 +01:00
|
|
|
<button
|
|
|
|
name="%(mail_tracking.action_view_mail_tracking_email)d"
|
2021-11-24 20:51:16 +01:00
|
|
|
context="{'search_default_recipient_address': email,
|
|
|
|
'default_recipient_address': email}"
|
2016-06-14 17:22:17 +02:00
|
|
|
type="action"
|
2016-12-14 19:29:55 +01:00
|
|
|
class="oe_stat_button"
|
2016-06-14 17:22:17 +02:00
|
|
|
icon="fa-envelope-o"
|
2021-01-27 15:12:25 +01:00
|
|
|
attrs="{'invisible': [('email', '=', False)]}"
|
|
|
|
>
|
|
|
|
<field
|
|
|
|
name="tracking_emails_count"
|
|
|
|
widget="statinfo"
|
|
|
|
string="Tracking emails"
|
|
|
|
/>
|
2016-06-14 17:22:17 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-11-05 17:26:01 +01:00
|
|
|
<xpath expr="//field[@name='email']/.." position="after">
|
2021-01-27 15:12:25 +01:00
|
|
|
<field
|
|
|
|
name="email_score"
|
|
|
|
widget="progressbar"
|
|
|
|
attrs="{'invisible': [('email', '=', False)]}"
|
|
|
|
/>
|
|
|
|
<field name="email_bounced" attrs="{'invisible': [('email', '=', False)]}" />
|
2018-11-05 17:26:01 +01:00
|
|
|
</xpath>
|
2016-06-14 17:22:17 +02:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2016-10-14 15:42:29 +02:00
|
|
|
<record model="ir.ui.view" id="view_res_partner_filter">
|
|
|
|
<field name="name">Filter bounced partners</field>
|
|
|
|
<field name="model">res.partner</field>
|
2021-01-27 15:12:25 +01:00
|
|
|
<field name="inherit_id" ref="base.view_res_partner_filter" />
|
2016-10-14 15:42:29 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<filter name="type_company" position="after">
|
2021-01-27 15:12:25 +01:00
|
|
|
<separator />
|
|
|
|
<filter
|
|
|
|
string="Email bounced"
|
|
|
|
name="email_bounced"
|
|
|
|
domain="[('email', '!=' , False), ('email_bounced', '=', True)]"
|
|
|
|
/>
|
2016-10-14 15:42:29 +02:00
|
|
|
</filter>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2016-09-09 18:33:21 +02:00
|
|
|
</odoo>
|