Skip to content

Commit

Permalink
[MIG] sales_team_security_crm: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lef-adhoc committed Jan 9, 2025
1 parent 3451ee1 commit 4cd5e82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sales_team_security_crm/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
6 changes: 2 additions & 4 deletions sales_team_security_crm/security/security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<field name="model_id" ref="crm.model_crm_lead" />
<field
name="domain_force"
>['|', '|', ('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])]
</field>
<field
name="groups"
Expand All @@ -18,8 +17,7 @@
<field name="model_id" ref="crm.model_crm_activity_report" />
<field
name="domain_force"
>['|', '|', ('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])]
</field>
<field
name="groups"
Expand Down

0 comments on commit 4cd5e82

Please sign in to comment.