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.

29 lines
1.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2016-2017 LasLabs Inc.
  4. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
  5. -->
  6. <odoo>
  7. <record id="auth_access_owners" model="ir.rule">
  8. <field name="name">MFA Authenticators - Owner Access</field>
  9. <field name="model_id" ref="model_res_users_authenticator"/>
  10. <field name="domain_force">[('user_id', '=?', user.id)]</field>
  11. <field name="perm_read" eval="True"/>
  12. <field name="perm_write" eval="True"/>
  13. <field name="perm_create" eval="True"/>
  14. <field name="perm_unlink" eval="True"/>
  15. <field name="groups" eval="[(4, ref('base.group_user'))]"/>
  16. </record>
  17. <record id="auth_access_admins" model="ir.rule">
  18. <field name="name">MFA Authenticators - Admin Read/Unlink</field>
  19. <field name="model_id" ref="model_res_users_authenticator"/>
  20. <field name="perm_read" eval="True"/>
  21. <field name="perm_write" eval="False"/>
  22. <field name="perm_create" eval="False"/>
  23. <field name="perm_unlink" eval="True"/>
  24. <field name="groups" eval="[(4, ref('base.group_erp_manager'))]"/>
  25. </record>
  26. </odoo>