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.

26 lines
1.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo noupdate="1">
  3. <record id="mass_mailing_marketing_user_access" model="ir.rule">
  4. <field name="name">Marketing user - Delete own unsent mass mailings</field>
  5. <field name="model_id" ref="mass_mailing.model_mail_mass_mailing"/>
  6. <field name="domain_force">[('create_uid', '=', user.id), ('state', 'in', ('draft', 'test'))]</field>
  7. <field name="groups" eval="[(4, ref('marketing.group_lead_automation_user'))]"/>
  8. <field eval="0" name="perm_read"/>
  9. <field eval="0" name="perm_write"/>
  10. <field eval="0" name="perm_create"/>
  11. <field eval="1" name="perm_unlink"/>
  12. </record>
  13. <record id="mass_mailing_marketing_manager_access" model="ir.rule">
  14. <field name="name">Marketing manager - Delete all unsent mass mailings</field>
  15. <field name="model_id" ref="mass_mailing.model_mail_mass_mailing"/>
  16. <field name="domain_force">[('state', 'in', ('draft', 'test'))]</field>
  17. <field name="groups" eval="[(4, ref('marketing.group_lead_automation_manager'))]"/>
  18. <field eval="0" name="perm_read"/>
  19. <field eval="0" name="perm_write"/>
  20. <field eval="0" name="perm_create"/>
  21. <field eval="1" name="perm_unlink"/>
  22. </record>
  23. </odoo>