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.

31 lines
1.3 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 oe_inline"
  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>
  27. </field>
  28. </record>
  29. </odoo>