OCA/server-tools

View on GitHub
password_security/security/res_users_pass_history.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>

<!--
    Copyright 2016 LasLabs Inc.
    License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
-->

<openerp>
<data>
    
    <record id="res_users_pass_history_rule" model="ir.rule">
        <field name="name">Res Users Pass History Access</field>
        <field name="model_id" ref="password_security.model_res_users_pass_history"/>
        <field name="groups" eval="[(4, ref('base.group_user'))]"/>
        <field name="domain_force">[
            ('user_id', '=', user.id)
        ]</field>
    </record>

    <record id="res_users_pass_history_rule_manager" model="ir.rule">
        <field name="name">Res Users Pass History Access/Managers</field>
        <field name="model_id" ref="password_security.model_res_users_pass_history"/>
        <field name="groups" eval="[(4, ref('base.group_erp_manager'))]"/>
        <field name="domain_force">[(1, '=', 1)]</field>
    </record>

</data>
</openerp>