You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  4. <odoo>
  5. <record model="ir.ui.view" id="view_partner_form">
  6. <field name="name">Partner Form with tracking emails</field>
  7. <field name="model">res.partner</field>
  8. <field name="priority">46</field>
  9. <field name="inherit_id" ref="base.view_partner_form"/>
  10. <field name="arch" type="xml">
  11. <div name="button_box" position="inside">
  12. <button name="%(mail_tracking.action_view_mail_tracking_email)d"
  13. context="{'search_default_recipient': email,
  14. 'default_recipient': email}"
  15. type="action"
  16. class="oe_stat_button"
  17. icon="fa-envelope-o"
  18. attrs="{'invisible': [('email', '=', False)]}">
  19. <field name="tracking_emails_count"
  20. widget="statinfo"
  21. string="Tracking emails"/>
  22. </button>
  23. </div>
  24. <xpath expr="//field[@name='email']/.." position="after">
  25. <field name="email_score" widget="progressbar"
  26. attrs="{'invisible': [('email', '=', False)]}"/>
  27. <field name="email_bounced"
  28. attrs="{'invisible': [('email', '=', False)]}"/>
  29. </xpath>
  30. </field>
  31. </record>
  32. <record model="ir.ui.view" id="view_res_partner_filter">
  33. <field name="name">Filter bounced partners</field>
  34. <field name="model">res.partner</field>
  35. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  36. <field name="arch" type="xml">
  37. <filter name="type_company" position="after">
  38. <separator/>
  39. <filter string="Email bounced" name="email_bounced"
  40. domain="[('email', '!=' , False), ('email_bounced', '=', True)]"/>
  41. </filter>
  42. </field>
  43. </record>
  44. </odoo>