Skip to content
Snippets Groups Projects
Commit a7e69943 authored by Gabriel Davini's avatar Gabriel Davini 🕺🏻
Browse files

Merge branch...

Merge branch '1-commercials-and-supervisors-can-t-read-company_id-partner_id-because-of-access-rules' into 'devel'

Resolve "Commercials and Supervisors can't read company_id.partner_id because of access rules"

Closes #1

See merge request !1
parents c2beadb2 60e73a2a
No related branches found
No related tags found
1 merge request!1Resolve "Commercials and Supervisors can't read company_id.partner_id because of access rules"
......@@ -23,6 +23,8 @@
'|',
('parent_id', '=', user.partner_id.id),
'|',
('company_id.partner_id', '=', user.company_id.partner_id.id),
'|',
('customer_salesmen.user_id', '=', user.id),
('child_ids.customer_salesmen.user_id', '=', user.id),
]
......@@ -216,6 +218,8 @@
'|',
('customer_salesmen.user_id', 'in', [u.id for u in user.supervisors.member_ids]),
'|',
('company_id.partner_id', '=', user.company_id.partner_id.id),
'|',
('child_ids.customer_salesmen.user_id', 'in', [u.id for u in user.supervisors.member_ids]),
'|',
('section_id.user_id', '=', user.id),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment