From 17c6aa21d96db66ef40fa1ae93ea1e02deb07dad Mon Sep 17 00:00:00 2001 From: Dossogne Bertrand Date: Tue, 23 May 2023 08:17:57 +0000 Subject: [PATCH] [FIX] hr_holidays: fix My Time Off access in multicompany Before this commit, trying to access "My Time Off" was not possible if connected on a company while some leaves were created from another company. This commit restricts that view to the leave created from the companies the user is logged into. closes odoo/odoo#122186 X-original-commit: c0039aa40a1274110906e45ba07a318fc6218267 Signed-off-by: Gvaladze Sopiko (sgv) --- addons/hr_holidays/views/hr_leave_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/views/hr_leave_views.xml b/addons/hr_holidays/views/hr_leave_views.xml index a1e1cc6c4ff..155bc565604 100644 --- a/addons/hr_holidays/views/hr_leave_views.xml +++ b/addons/hr_holidays/views/hr_leave_views.xml @@ -644,7 +644,7 @@ - [('user_id', '=', uid)] + [('user_id', '=', uid), ('employee_company_id', 'in', allowed_company_ids)]

Keep track of your PTOs.