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.

46 lines
1.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- © 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="inherit_id" ref="base.view_partner_form"/>
  9. <field name="arch" type="xml">
  10. <div name="button_box" position="inside">
  11. <button name="%(mail_tracking.action_view_mail_tracking_email)d"
  12. context="{'search_default_recipient': email,
  13. 'default_recipient': email}"
  14. type="action"
  15. class="oe_stat_button"
  16. icon="fa-envelope-o"
  17. attrs="{'invisible': [('email', '=', False)]}">
  18. <field name="tracking_emails_count"
  19. widget="statinfo"
  20. string="Tracking emails"/>
  21. </button>
  22. </div>
  23. <field name="email" position="after">
  24. <field name="email_score" widget="progressbar"
  25. attrs="{'invisible': [('email', '=', False)]}"/>
  26. <field name="email_bounced"
  27. attrs="{'invisible': [('email', '=', False)]}"/>
  28. </field>
  29. </field>
  30. </record>
  31. <record model="ir.ui.view" id="view_res_partner_filter">
  32. <field name="name">Filter bounced partners</field>
  33. <field name="model">res.partner</field>
  34. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  35. <field name="arch" type="xml">
  36. <filter name="type_company" position="after">
  37. <separator/>
  38. <filter string="Email bounced" name="email_bounced"
  39. domain="[('email', '!=' , False), ('email_bounced', '=', True)]"/>
  40. </filter>
  41. </field>
  42. </record>
  43. </odoo>