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.

52 lines
2.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
  3. Copyright 2015-16 Antonio Espinosa <antonio.espinosa@tecnativa.com>
  4. Copyright 2015 Javier Iniesta <javieria@antiun.com>
  5. Copyright 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
  6. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  7. <odoo>
  8. <record model="ir.ui.view" id="view_partner_form">
  9. <field name="name">Partner Form with mailing contacts</field>
  10. <field name="model">res.partner</field>
  11. <field name="inherit_id" ref="base.view_partner_form"/>
  12. <field name="arch" type="xml">
  13. <div name="button_box" position="inside">
  14. <button name="%(mass_mailing.action_view_mass_mailing_contacts)d"
  15. context="{'search_default_partner_id': active_id,
  16. 'default_partner_id': active_id}"
  17. type="action"
  18. class="oe_stat_button oe_inline"
  19. icon="fa-envelope-o">
  20. <field name="mass_mailing_contacts_count"
  21. widget="statinfo"
  22. string="Mailing lists"/>
  23. </button>
  24. <button name="%(mass_mailing.action_view_mail_mail_statistics)d"
  25. context="{'search_default_partner_id': active_id,
  26. 'default_partner_id': active_id}"
  27. type="action"
  28. class="oe_stat_button oe_inline"
  29. icon="fa-envelope-o">
  30. <field name="mass_mailing_stats_count"
  31. widget="statinfo"
  32. string="Mass mailing stats"/>
  33. </button>
  34. </div>
  35. </field>
  36. </record>
  37. <record id="view_res_partner_filter" model="ir.ui.view">
  38. <field name="name">Partner Search with mailing contacts</field>
  39. <field name="model">res.partner</field>
  40. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  41. <field name="priority">20</field>
  42. <field name="arch" type="xml">
  43. <field name="category_id" position="after">
  44. <field name="mass_mailing_contact_ids" string="Mailing List"
  45. filter_domain="[('mass_mailing_contact_ids.list_id','ilike', self)]"/>
  46. </field>
  47. </field>
  48. </record>
  49. </odoo>