reporting-engine/sql_export/security/sql_export_security.xml

17 lines
619 B
XML
Raw Normal View History

2024-10-01 05:53:56 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<flectra noupdate="1">
<record model="ir.rule" id="sql_export_restric_access_user_or_group">
<field name="name">SQL Export users and groups rules</field>
<field name="model_id" ref="model_sql_export" />
<field eval="1" name="perm_read" />
<field eval="0" name="perm_create" />
<field eval="0" name="perm_write" />
<field eval="0" name="perm_unlink" />
<field
name="domain_force"
>['|', ('user_ids','=',user.id), ('group_ids','in', [x.id for x in user.groups_id])]</field>
</record>
</flectra>