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
961 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. <openerp>
  7. <data>
  8. <record id="res_users_pass_history_rule" model="ir.rule">
  9. <field name="name">Res Users Pass History Access</field>
  10. <field name="model_id" ref="password_security.model_res_users_pass_history"/>
  11. <field name="groups" eval="[(4, ref('base.group_user'))]"/>
  12. <field name="domain_force">[
  13. ('user_id', '=', user.id)
  14. ]</field>
  15. </record>
  16. <record id="res_users_pass_history_rule_manager" model="ir.rule">
  17. <field name="name">Res Users Pass History Access/Managers</field>
  18. <field name="model_id" ref="password_security.model_res_users_pass_history"/>
  19. <field name="groups" eval="[(4, ref('base.group_erp_manager'))]"/>
  20. <field name="domain_force">[(1, '=', 1)]</field>
  21. </record>
  22. </data>
  23. </openerp>