123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <?xml version="1.0" encoding="utf-8"?>
- <!-- © 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_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="Eventos de Seguimiento" create="false" edit="false" delete="false">
- <sheet>
- <group>
- <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>
- </group>
- <group attrs="{'invisible': [('event_type', 'not in', ('sent',))]}">
- <field name="smtp_server"/>
- </group>
- <group attrs="{'invisible': [('event_type', 'not in', ('open', 'click'))]}">
- <field name="url"/>
- </group>
- <group attrs="{'invisible': [('event_type', 'not in', ('open', 'click'))]}">
- <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>
- </group>
- <group string="Error"
- attrs="{'invisible': [('error_type', '=', False)]}">
- <field name="error_type"/>
- <field name="error_description"/>
- <field name="error_details"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <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 string="Eventos de Seguimiento" create="false" edit="false" delete="false"
- colors="grey:event_type in ('deferral',);black:event_type in ('sent', 'delivered');red:event_type in ('hard_bounce', 'soft_bounce', 'spam', 'reject');blue:event_type in ('unsub', 'click', 'open')">
- <field name="time"/>
- <field name="tracking_email_id"/>
- <field name="recipient"/>
- <field name="event_type"/>
- <field name="date" invisible="1"/>
- <field name="ip"/>
- <field name="url"/>
- <field name="user_country_id" string="País"/>
- <field name="os_family" string="Sistema Operativo"/>
- <field name="ua_family" string="Navegador"/>
- </tree>
- </field>
- </record>
- <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="Busqueda de Eventos de Seguimiento">
- <field name="tracking_email_id" string="Mensaje"
- filter_domain="[('tracking_email_id', 'ilike', self)]"/>
- <field name="recipient" string="Recipiente"/>
- <field name="time" string="Hora"/>
- <field name="date" string="Fecha"/>
- <field name="ip" string="IP"/>
- <field name="url" string="URL"/>
- <filter name="sent" string="Enviado" domain="[('event_type', '=', 'sent')]"/>
- <filter name="delivered" string="Entregado" domain="[('event_type', '=', 'delivered')]"/>
- <filter name="click" string="Click" domain="[('event_type', '=', 'click')]"/>
- <filter name="open" string="Abierto" domain="[('event_type', '=', 'open')]"/>
- <filter name="unsub" string="Desuscripto" domain="[('event_type', '=', 'unsub')]"/>
- <filter name="bounce" string="Rebotado"
- domain="[('event_type', 'in', ('hard_bounce', 'soft_bounce'))]"/>
- <filter name="exception" string="Fallado"
- domain="[('event_type', 'in', ('reject', 'spam'))]"/>
- <separator/>
- <group expand="0" string="Agrupado por">
- <filter string="Tipo" domain="[]" context="{'group_by': 'event_type'}"/>
- <filter string="Mensaje" domain="[]" context="{'group_by': 'tracking_email_id'}"/>
- <filter string="Sistema Operativo" domain="[('os_family', '!=', False)]" context="{'group_by': 'os_family'}"/>
- <filter string="Navegador" domain="[('ua_family', '!=', False)]" context="{'group_by': 'ua_family'}"/>
- <filter string="Tipo de Navegador" domain="[('ua_type', '!=', False)]" context="{'group_by': 'ua_type'}"/>
- <filter string="País" domain="[('user_country_id', '!=', False)]" context="{'group_by': 'user_country_id'}"/>
- <filter string="Mes" domain="[]" context="{'group_by': 'date'}"/>
- </group>
- </search>
- </field>
- </record>
- <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_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="search_view_id" ref="view_mail_tracking_event_search"/>
- </record>
- <!-- Add menu entry in Settings/Email -->
- <menuitem name="Eventos de Seguimiento" id="menu_mail_tracking_event"
- parent="base.menu_email"
- action="action_view_mail_tracking_event"/>
- </data>
- </openerp>
|