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.

33 lines
1.3 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--Copyright 2017 Artyom Losev <https://github.com/ArtyomLosev>
  3. Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
  4. License MIT (https://opensource.org/licenses/MIT).-->
  5. <odoo>
  6. <record model="ir.ui.view" id="email_compose_message_wizard_form_private">
  7. <field name="name">mail.compose.message.form.private</field>
  8. <field name="model">mail.compose.message</field>
  9. <field name="groups_id" eval="[(4,ref('base.group_user'))]" />
  10. <field name="inherit_id" ref="mail.email_compose_message_wizard_form" />
  11. <field name="arch" type="xml">
  12. <data>
  13. <xpath expr="//field[@name='active_domain']" position="after">
  14. <field name="is_private" invisible="1" />
  15. </xpath>
  16. <xpath
  17. expr="//div[@groups='base.group_user']/span[2]"
  18. position="attributes"
  19. >
  20. <attribute
  21. name="attrs"
  22. >{'invisible': [('is_private', '=', True)]}
  23. </attribute>
  24. </xpath>
  25. </data>
  26. </field>
  27. </record>
  28. </odoo>