123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?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_email_form">
- <field name="name">mail.tracking.email.form</field>
- <field name="model">mail.tracking.email</field>
- <field name="arch" type="xml">
- <form string="Eventos de Seguimiento" create="false" edit="false" delete="false">
- <header>
- <field name="state" widget="statusbar"/>
- </header>
- <sheet>
- <group>
- <field name="name"/>
- </group>
- <group>
- <group>
- <field name="mail_message_id"/>
- <field name="mail_id"/>
- <field name="partner_id"/>
- <field name="recipient"/>
- <field name="sender"/>
- </group>
- <group>
- <field name="timestamp"/>
- <field name="time"/>
- <field name="date"/>
- </group>
- </group>
- <group attrs="{'invisible': [('bounce_type', '=', False)]}">
- <field name="bounce_type"/>
- <field name="bounce_description"/>
- </group>
- <group attrs="{'invisible': [('error_type', '=', False)]}">
- <field name="error_smtp_server"
- attrs="{'invisible': [('error_smtp_server', '=', False)]}"/>
- <field name="error_type"/>
- <field name="error_description"/>
- </group>
- <label for="tracking_event_ids"/>
- <div>
- <field name="tracking_event_ids">
- <tree string="Eventos de Seguimientos" colors="grey:event_type in ('deferral');black:event_type in ('send');red:event_type in ('hard_bounce', 'soft_bounce', 'spam', 'reject');blue:event_type in ('unsub', 'click', 'open')">
- <field name="time"/>
- <field name="event_type"/>
- <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>
- </div>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="view_mail_tracking_email_tree">
- <field name="name">mail.tracking.email.tree</field>
- <field name="model">mail.tracking.email</field>
- <field name="arch" type="xml">
- <tree string="Seguimiento de Emails" create="false" edit="false" delete="false"
- colors="grey:state in (False, 'deferred');black:state in ('sent', 'delivered');green:state in ('opened');red:state in ('rejected', 'spam', 'bounced', 'soft-bounced');blue:state in ('unsub')">
- <field name="time"/>
- <field name="date" invisible="1"/>
- <field name="name"/>
- <field name="sender" string="Enviado Por"/>
- <field name="recipient" string="Recipiente"/>
- <field name="state"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_mail_tracking_email_search">
- <field name="name">mail.tracking.email.search</field>
- <field name="model">mail.tracking.email</field>
- <field name="arch" type="xml">
- <search string="Buscar Seguimientos de Eventos">
- <field name="display_name" string="Email"
- filter_domain="['|', ('sender', 'ilike', self), ('recipient', 'ilike', self)]"/>
- <field name="sender" string="Enviado Por"/>
- <field name="recipient" string="Recipiente"/>
- <field name="name" string="Asunto"/>
- <field name="time" string="Hora"/>
- <field name="date" string="Fecha"/>
- <filter name="sent" string="Enviado" domain="[('state', 'in', ('sent',))]"/>
- <filter name="deferred" string="Diferido" domain="[('state', '=', 'deferred')]"/>
- <filter name="delivered" string="Abierto" domain="[('state', 'in', ('delivered', 'opened'))]"/>
- <filter name="unsub" string="Desuscripto" domain="[('state', '=', 'unsub')]"/>
- <filter name="exception" string="Fallado"
- domain="[('state', 'in', ('error', 'rejected', 'spam', 'bounced', 'soft-bounced'))]"/>
- <separator/>
- <group expand="0" string="Agrupado Por">
- <filter string="Estado" domain="[]" context="{'group_by': 'state'}"/>
- <filter string="Asunto" domain="[]" context="{'group_by': 'name'}"/>
- <filter string="Enviado Por" domain="[]" context="{'group_by': 'sender'}"/>
- <filter string="Mes" domain="[]" context="{'group_by': 'date'}"/>
- </group>
- </search>
- </field>
- </record>
- <record id="action_view_mail_tracking_email" model="ir.actions.act_window">
- <field name="name">Seguimiento de Emails</field>
- <field name="res_model">mail.tracking.email</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="search_view_id" ref="view_mail_tracking_email_search"/>
- </record>
- <!-- Add menu entry in Settings/Email -->
- <menuitem name="Seguimiento de Emails" id="menu_mail_tracking_email"
- parent="base.menu_email"
- action="action_view_mail_tracking_email"/>
- </data>
- </openerp>
|