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.

44 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- © 2015 Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
  3. © 2015 Antonio Espinosa <antonioea@antiun.com>
  4. © 2015 Javier Iniesta <javieria@antiun.com>
  5. © 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
  6. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  7. <openerp>
  8. <data>
  9. <record model="ir.ui.view" id="view_mail_mass_mailing_contact_tree">
  10. <field name="name">mail.mass_mailing.contact.tree.partner</field>
  11. <field name="model">mail.mass_mailing.contact</field>
  12. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_tree"/>
  13. <field name="arch" type="xml">
  14. <field name="email" position="after">
  15. <field name="partner_id"/>
  16. </field>
  17. <field name="email" position="attributes">
  18. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  19. </field>
  20. <field name="name" position="attributes">
  21. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  22. </field>
  23. </field>
  24. </record>
  25. <record model="ir.ui.view" id="view_mail_mass_mailing_contact_search">
  26. <field name="name">Add partner search field and group by</field>
  27. <field name="model">mail.mass_mailing.contact</field>
  28. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_search"/>
  29. <field name="arch" type="xml">
  30. <field name="email" position="after">
  31. <field name="partner_id"/>
  32. </field>
  33. <filter name="group_create_date" position="after">
  34. <filter string="Partner"
  35. name="group_partner"
  36. context="{'group_by': 'partner_id'}"/>
  37. </filter>
  38. </field>
  39. </record>
  40. </data>
  41. </openerp>