Skip to content
Snippets Groups Projects
Commit b1133868 authored by Florian Bieringer's avatar Florian Bieringer
Browse files

[FIX] hr_timesheet: fix domain for portal


closes odoo/odoo#120501

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent c62bd8b3
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,7 @@ class AccountAnalyticLine(models.Model):
'|', '|', '|',
('task_id.project_id.message_partner_ids', 'child_of', [self.env.user.partner_id.commercial_partner_id.id]),
('task_id.message_partner_ids', 'child_of', [self.env.user.partner_id.commercial_partner_id.id]),
('task_id.project_id.allowed_portal_user_ids', 'child_of', [self.env.user.id]),
('task_id.project_id.allowed_portal_user_ids', 'in', [self.env.user.id]),
('task_id.allowed_user_ids', 'in', [self.env.user.id]),
('task_id.project_id.privacy_visibility', '=', 'portal'),
'&',
......@@ -184,7 +184,7 @@ class AccountAnalyticLine(models.Model):
'&',
'|',
('project_id.message_partner_ids', 'child_of', [self.env.user.partner_id.commercial_partner_id.id]),
('project_id.allowed_portal_user_ids', 'child_of', [self.env.user.id]),
('project_id.allowed_portal_user_ids', 'in', [self.env.user.id]),
('project_id.privacy_visibility', '=', 'portal')
]
......
Germany, 2023-05-03
I hereby agree to the terms of the Odoo Individual Contributor License
Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this
declaration.
Signed,
Florian Bieringer github@fl0.eu https://github.com/derfl0
\ No newline at end of file
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