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
948 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2016 LasLabs Inc.
  4. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
  5. -->
  6. <odoo noupdate="1">
  7. <record id="res_users_pass_history_rule" model="ir.rule">
  8. <field name="name">Res Users Pass History Access</field>
  9. <field name="model_id" ref="password_security.model_res_users_pass_history"/>
  10. <field name="groups" eval="[(4, ref('base.group_user'))]"/>
  11. <field name="domain_force">[
  12. ('user_id', '=', user.id)
  13. ]</field>
  14. </record>
  15. <record id="res_users_pass_history_rule_manager" model="ir.rule">
  16. <field name="name">Res Users Pass History Access/Managers</field>
  17. <field name="model_id" ref="password_security.model_res_users_pass_history"/>
  18. <field name="groups" eval="[(4, ref('base.group_erp_manager'))]"/>
  19. <field name="domain_force">[(1, '=', 1)]</field>
  20. </record>
  21. </odoo>