2021-01-26 15:06:17 +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
|
|
|
|
2022-03-25 12:31:13 +01:00
|
|
|
<record model="ir.ui.view" id="view_mail_tracking_event_form">
|
|
|
|
<field name="name">mail.tracking.event.form</field>
|
|
|
|
<field name="model">mail.tracking.event</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form
|
|
|
|
string="MailTracking event"
|
|
|
|
create="false"
|
|
|
|
edit="false"
|
|
|
|
delete="false"
|
|
|
|
>
|
|
|
|
<sheet>
|
2016-06-14 17:22:17 +02:00
|
|
|
<group>
|
2022-03-25 12:31:13 +01:00
|
|
|
<group>
|
|
|
|
<field name="tracking_email_id" />
|
|
|
|
<field name="recipient" />
|
|
|
|
<field name="event_type" />
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="timestamp" />
|
|
|
|
<field name="time" />
|
|
|
|
<field name="date" />
|
|
|
|
</group>
|
2016-06-14 17:22:17 +02:00
|
|
|
</group>
|
2022-03-25 12:31:13 +01:00
|
|
|
<group attrs="{'invisible': [('event_type', 'not in', ('sent',))]}">
|
|
|
|
<field name="smtp_server" />
|
2016-06-14 17:22:17 +02:00
|
|
|
</group>
|
2022-03-25 12:31:13 +01:00
|
|
|
<group
|
2021-01-26 15:06:17 +01:00
|
|
|
attrs="{'invisible': [('event_type', 'not in', ('open', 'click'))]}"
|
|
|
|
>
|
2022-03-25 12:31:13 +01:00
|
|
|
<field name="url" />
|
|
|
|
</group>
|
|
|
|
<group
|
2021-01-26 15:06:17 +01:00
|
|
|
attrs="{'invisible': [('event_type', 'not in', ('open', 'click'))]}"
|
|
|
|
>
|
2022-03-25 12:31:13 +01:00
|
|
|
<group>
|
|
|
|
<field name="mobile" />
|
|
|
|
<field name="ip" />
|
|
|
|
<field name="user_country_id" />
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="user_agent" />
|
|
|
|
<field name="ua_family" />
|
|
|
|
<field name="ua_type" />
|
|
|
|
<field name="os_family" />
|
|
|
|
</group>
|
2016-06-14 17:22:17 +02:00
|
|
|
</group>
|
2022-03-25 12:31:13 +01:00
|
|
|
<group
|
2021-01-26 15:06:17 +01:00
|
|
|
string="Error"
|
|
|
|
attrs="{'invisible': [('error_type', '=', False)]}"
|
|
|
|
>
|
2022-03-25 12:31:13 +01:00
|
|
|
<field name="error_type" />
|
|
|
|
<field name="error_description" />
|
|
|
|
<field name="error_details" />
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2016-06-14 17:22:17 +02:00
|
|
|
|
2022-03-25 12:31:13 +01:00
|
|
|
<record model="ir.ui.view" id="view_mail_tracking_event_tree">
|
|
|
|
<field name="name">mail.tracking.event.tree</field>
|
|
|
|
<field name="model">mail.tracking.event</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree
|
2021-01-26 15:06:17 +01:00
|
|
|
create="false"
|
|
|
|
edit="false"
|
|
|
|
delete="false"
|
|
|
|
decoration-muted="event_type == 'deferred'"
|
|
|
|
decoration-danger="event_type in ('hard_bounce', 'soft_bounce', 'spam', 'reject')"
|
|
|
|
decoration-info="event_type in ('unsub', 'click', 'open')"
|
|
|
|
>
|
2022-03-25 12:31:13 +01:00
|
|
|
<field name="time" />
|
|
|
|
<field name="tracking_email_id" />
|
|
|
|
<field name="recipient" />
|
|
|
|
<field name="event_type" />
|
|
|
|
<field
|
2021-01-26 15:06:17 +01:00
|
|
|
name="error_details"
|
|
|
|
invisible="not context.get('event_error_filter', False)"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<field name="date" invisible="1" />
|
|
|
|
<field name="ip" />
|
|
|
|
<field name="url" />
|
|
|
|
<field name="user_country_id" string="Country" />
|
|
|
|
<field name="os_family" string="OS" />
|
|
|
|
<field name="ua_family" string="User agent" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2016-06-14 17:22:17 +02:00
|
|
|
|
2022-03-25 12:31:13 +01:00
|
|
|
<record model="ir.ui.view" id="view_mail_tracking_event_search">
|
|
|
|
<field name="name">mail.tracking.event.search</field>
|
|
|
|
<field name="model">mail.tracking.event</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="MailTracking event search">
|
|
|
|
<field
|
2021-01-26 15:06:17 +01:00
|
|
|
name="tracking_email_id"
|
|
|
|
string="Message"
|
|
|
|
filter_domain="[('tracking_email_id', 'ilike', self)]"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<field name="recipient" string="Recipient" />
|
|
|
|
<field name="time" string="Time" />
|
|
|
|
<field name="date" string="Date" />
|
|
|
|
<field name="ip" string="IP" />
|
|
|
|
<field name="url" string="URL" />
|
|
|
|
<filter
|
|
|
|
name="sent"
|
|
|
|
string="Sent"
|
|
|
|
domain="[('event_type', '=', 'sent')]"
|
|
|
|
/>
|
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
name="delivered"
|
|
|
|
string="Delivered"
|
|
|
|
domain="[('event_type', '=', 'delivered')]"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
name="click"
|
|
|
|
string="Click"
|
|
|
|
domain="[('event_type', '=', 'click')]"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
|
|
|
name="open"
|
|
|
|
string="Open"
|
|
|
|
domain="[('event_type', '=', 'open')]"
|
|
|
|
/>
|
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
name="unsub"
|
|
|
|
string="Unsubscribe"
|
|
|
|
domain="[('event_type', '=', 'unsub')]"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
name="bounce"
|
|
|
|
string="Bounce"
|
|
|
|
domain="[('event_type', 'in', ('hard_bounce', 'soft_bounce'))]"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
name="exception"
|
|
|
|
string="Failed"
|
2017-02-08 15:21:23 +01:00
|
|
|
domain="[('event_type', 'in', ('reject', 'spam'))]"
|
2021-01-26 15:06:17 +01:00
|
|
|
context="{'event_error_filter': True}"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<separator />
|
|
|
|
<group expand="0" string="Group By">
|
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
string="Type"
|
|
|
|
name="group_by_type"
|
|
|
|
domain="[]"
|
|
|
|
context="{'group_by': 'event_type'}"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
string="Message"
|
|
|
|
name="group_by_message"
|
|
|
|
domain="[]"
|
|
|
|
context="{'group_by': 'tracking_email_id'}"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
string="OS"
|
|
|
|
name="group_by_os"
|
|
|
|
domain="[('os_family', '!=', False)]"
|
|
|
|
context="{'group_by': 'os_family'}"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
string="User agent"
|
|
|
|
name="group_by_user_agent"
|
|
|
|
domain="[('ua_family', '!=', False)]"
|
|
|
|
context="{'group_by': 'ua_family'}"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
string="User agent type"
|
|
|
|
name="group_by_user_agent_type"
|
|
|
|
domain="[('ua_type', '!=', False)]"
|
|
|
|
context="{'group_by': 'ua_type'}"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
string="Country"
|
|
|
|
name="group_by_country"
|
|
|
|
domain="[('user_country_id', '!=', False)]"
|
|
|
|
context="{'group_by': 'user_country_id'}"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
<filter
|
2021-01-26 15:06:17 +01:00
|
|
|
string="Month"
|
|
|
|
name="group_by_date"
|
|
|
|
domain="[]"
|
|
|
|
context="{'group_by': 'date'}"
|
|
|
|
/>
|
2022-03-25 12:31:13 +01:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2016-06-14 17:22:17 +02:00
|
|
|
|
2022-03-25 12:31:13 +01:00
|
|
|
<record id="action_view_mail_tracking_event" model="ir.actions.act_window">
|
|
|
|
<field name="name">MailTracking events</field>
|
|
|
|
<field name="res_model">mail.tracking.event</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="search_view_id" ref="view_mail_tracking_event_search" />
|
|
|
|
</record>
|
2016-06-14 17:22:17 +02:00
|
|
|
|
2022-03-25 12:31:13 +01:00
|
|
|
<!-- Add menu entry in Settings/Email -->
|
|
|
|
<menuitem
|
2021-01-26 15:06:17 +01:00
|
|
|
name="Tracking events"
|
|
|
|
id="menu_mail_tracking_event"
|
|
|
|
parent="base.menu_email"
|
|
|
|
action="action_view_mail_tracking_event"
|
|
|
|
/>
|
2016-06-14 17:22:17 +02:00
|
|
|
|
|
|
|
|
2016-09-09 18:33:21 +02:00
|
|
|
</odoo>
|