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.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="res.groups" id="group_all_emails">
  5. <field name="name">all_emails</field>
  6. <field name="comment">Gets access to all emails. For example to check outgoing emails.</field>
  7. </record>
  8. <record model="ir.rule" id="rule_mail_mail_user">
  9. <field name="name">mail.mail: user</field>
  10. <field name="model_id" ref="mail.model_mail_mail"/>
  11. <field name="domain_force">[('author_id', '=', user.partner_id.id)]</field>
  12. <field name="groups" eval="[(4, ref('base.group_user'))]"/>
  13. <field name="perm_read" eval="True"/>
  14. <field name="perm_write" eval="True"/>
  15. <field name="perm_create" eval="True"/>
  16. <field name="perm_unlink" eval="False"/>
  17. <field name="global" eval="False"/>
  18. </record>
  19. <record model="ir.rule" id="rule_mail_mail_system">
  20. <field name="name">mail.mail: system</field>
  21. <field name="model_id" ref="mail.model_mail_mail"/>
  22. <field name="domain_force">[(1, '=', 1)]</field>
  23. <field name="groups" eval="[(4, ref('mail_outgoing.group_all_emails'))]"/>
  24. <field name="perm_read" eval="True"/>
  25. <field name="perm_write" eval="True"/>
  26. <field name="perm_create" eval="True"/>
  27. <field name="perm_unlink" eval="True"/>
  28. <field name="global" eval="False"/>
  29. </record>
  30. </data>
  31. </openerp>