18 lines
824 B
XML
18 lines
824 B
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<odoo>
|
||
|
<data noupdate="1">
|
||
|
<record id="user_audit_rule_group_user" model="ir.rule">
|
||
|
<field name="name">User access</field>
|
||
|
<field name="model_id" ref="model_user_audit_log"/>
|
||
|
<field name="domain_force">[('user_id','=',user.id)]</field>
|
||
|
<field name="groups" eval="[Command.link(ref('user_audit.group_user_audit_user'))]"/>
|
||
|
</record>
|
||
|
<record id="user_audit_rule_group_admin" model="ir.rule">
|
||
|
<field name="name">Admin full access</field>
|
||
|
<field name="model_id" ref="model_user_audit_log"/>
|
||
|
<field name="groups" eval="[Command.link(ref('user_audit.group_user_audit_admin'))]"/>
|
||
|
<field name="domain_force">[(1, '=', 1)]</field>
|
||
|
</record>
|
||
|
</data>
|
||
|
</odoo>
|