diff --git a/sales_team_security_crm/__manifest__.py b/sales_team_security_crm/__manifest__.py index 1a88ce88c13d..2c29b975ac92 100644 --- a/sales_team_security_crm/__manifest__.py +++ b/sales_team_security_crm/__manifest__.py @@ -4,7 +4,7 @@ { "name": "CRM documents permissions by teams", "summary": "Integrates sales_team_security with crm", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "category": "Customer Relationship Management", "website": "https://github.com/OCA/sale-workflow", "author": "Tecnativa, Iván Todorovich, Odoo Community Association (OCA)", diff --git a/sales_team_security_crm/security/security.xml b/sales_team_security_crm/security/security.xml index 57c6d7b0d2fe..05b5c4ba6945 100644 --- a/sales_team_security_crm/security/security.xml +++ b/sales_team_security_crm/security/security.xml @@ -5,8 +5,7 @@ ['|', '|', ('user_id', '=', user.id), ('user_id', '=', False), '|', ('team_id', '=', user.sale_team_id.id), - ('team_id', '=', False)] + >['|', ('user_id', 'in', [user.id, False]), ('team_id', 'in', [user.sale_team_id.id, False])] ['|', '|', ('user_id', '=', user.id), ('user_id', '=', False), '|', ('team_id', '=', user.sale_team_id.id), - ('team_id', '=', False)] + >['|', ('user_id', 'in', [user.id, False]), ('team_id', 'in', [user.sale_team_id.id, False])]