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.

42 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
  3. Copyright 2015 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_mail_mass_mailing_contact_tree">
  9. <field name="name">mail.mass_mailing.contact.tree.partner</field>
  10. <field name="model">mail.mass_mailing.contact</field>
  11. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_tree"/>
  12. <field name="arch" type="xml">
  13. <field name="email" position="after">
  14. <field name="partner_id"/>
  15. </field>
  16. <field name="email" position="attributes">
  17. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  18. </field>
  19. <field name="name" position="attributes">
  20. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  21. </field>
  22. </field>
  23. </record>
  24. <record model="ir.ui.view" id="view_mail_mass_mailing_contact_search">
  25. <field name="name">Add partner search field and group by</field>
  26. <field name="model">mail.mass_mailing.contact</field>
  27. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_search"/>
  28. <field name="arch" type="xml">
  29. <field name="email" position="after">
  30. <field name="partner_id"/>
  31. </field>
  32. <filter name="group_create_date" position="after">
  33. <filter string="Partner"
  34. name="group_partner"
  35. context="{'group_by': 'partner_id'}"/>
  36. </filter>
  37. </field>
  38. </record>
  39. </odoo>