diff --git a/addons/maintenance/security/maintenance.xml b/addons/maintenance/security/maintenance.xml index e3f31dccde24f7bc710d0e369804087f16f7face..2df90cf6bbbe8dca8bf01fbf859323b51e5be3fd 100644 --- a/addons/maintenance/security/maintenance.xml +++ b/addons/maintenance/security/maintenance.xml @@ -14,7 +14,7 @@ <record id="equipment_request_rule_user" model="ir.rule"> <field name="name">Users are allowed to access their own maintenance requests</field> <field name="model_id" ref="model_maintenance_request"/> - <field name="domain_force">['|', ('message_partner_ids', 'in', [user.partner_id.id]), ('user_id.id', '=', user.id)]</field> + <field name="domain_force">['|', '|', ('owner_user_id', '=', user.id), ('message_partner_ids', 'in', [user.partner_id.id]), ('user_id.id', '=', user.id)]</field> <field name="groups" eval="[(4, ref('base.group_user'))]"/> </record>