diff --git a/sale_commission_agent_restrict/security/security.xml b/sale_commission_agent_restrict/security/security.xml index b77f6b083..d4f2a7b35 100644 --- a/sale_commission_agent_restrict/security/security.xml +++ b/sale_commission_agent_restrict/security/security.xml @@ -30,12 +30,12 @@ [ - '|','|','|','|', - ('id', 'child_of', user.partner_id.child_ids.ids), - ('user_ids', 'in', user.company_id.user_ids.ids), - ('agents', 'in', user.partner_id.ids), - ('active', '=', False), - ('create_uid', '=', user.id)] + '|', + ('id', 'child_of', user.partner_id.id), + '|', + ('create_uid', '=', user.id), + ('agents', 'in', user.partner_id.ids), + ]