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.

65 lines
3.1 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.inherit</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>
  17. </record>
  18. <record model="ir.ui.view" id="view_mail_mass_mailing_contact_form">
  19. <field name="name">mail.mass_mailing.contact.form.partner</field>
  20. <field name="model">mail.mass_mailing.contact</field>
  21. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_form"/>
  22. <field name="arch" type="xml">
  23. <field name="email" position="after">
  24. <field name="partner_id"/>
  25. </field>
  26. <field name="title_id" position="attributes">
  27. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  28. </field>
  29. <field name="email" position="attributes">
  30. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  31. </field>
  32. <field name="name" position="attributes">
  33. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  34. </field>
  35. <field name="company_name" position="attributes">
  36. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  37. </field>
  38. <field name="country_id" position="attributes">
  39. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  40. </field>
  41. <field name="tag_ids" position="attributes">
  42. <attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
  43. </field>
  44. </field>
  45. </record>
  46. <record model="ir.ui.view" id="view_mail_mass_mailing_contact_search">
  47. <field name="name">Add partner search field and group by</field>
  48. <field name="model">mail.mass_mailing.contact</field>
  49. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_search"/>
  50. <field name="arch" type="xml">
  51. <field name="name" position="after">
  52. <field name="partner_id"/>
  53. </field>
  54. <filter name="group_create_date" position="after">
  55. <filter string="Partner"
  56. name="group_partner"
  57. context="{'group_by': 'partner_id'}"/>
  58. </filter>
  59. </field>
  60. </record>
  61. </odoo>