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.

39 lines
1.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_partner_form">
  5. <field name="name">Partner Form with mailing contacts</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <div class="oe_right oe_button_box" position="inside">
  10. <button name="%(mass_mailing.action_view_mass_mailing_contacts)d"
  11. context="{'search_default_partner_id': active_id,
  12. 'default_partner_id': active_id}"
  13. type="action"
  14. class="oe_stat_button oe_inline"
  15. icon="fa-envelope-o">
  16. <field name="mass_mailing_contacts_count"
  17. widget="statinfo"
  18. string="Mailing lists"/>
  19. </button>
  20. </div>
  21. </field>
  22. </record>
  23. <record id="view_res_partner_filter" model="ir.ui.view">
  24. <field name="name">Partner Search with mailing contacts</field>
  25. <field name="model">res.partner</field>
  26. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  27. <field name="priority">20</field>
  28. <field name="arch" type="xml">
  29. <field name="category_id" position="after">
  30. <field name="mass_mailing_contacts" string="Mailing List"
  31. filter_domain="[('mass_mailing_contacts.list_id','ilike', self)]"/>
  32. </field>
  33. </field>
  34. </record>
  35. </data>
  36. </openerp>