From 600bfa11963e98a02cbec8a2273a27dcbd91be7a Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Fri, 3 Jul 2020 09:15:06 +0000 Subject: [PATCH] [FIX] hr: activity type responsible on hr plans fine-tuning of bf8a9af1ac549be830bec28c88eb1c565b591941 - Employees > Configuration > Activity Planning > Plans and ensure the activities have different responsible; - Create a new Employee, assign a Manager (a different user then the one connected, you can assign Marc Demo for example); - Click launch plan. Before this commit, the activity type responsible is ignored and the responsible for all activities is the connected user. Now, the responsible for the activities are assigned taking into account the activity type configuration. opw-2265631 closes odoo/odoo#54054 X-original-commit: 0f4ec369dccdf25aed259ae97b5cc8973a1a8c5a Signed-off-by: Jorge Pinna Puissant (jpp) --- addons/hr/wizard/hr_plan_wizard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr/wizard/hr_plan_wizard.py b/addons/hr/wizard/hr_plan_wizard.py index 3390196a9c8..88168e300f6 100644 --- a/addons/hr/wizard/hr_plan_wizard.py +++ b/addons/hr/wizard/hr_plan_wizard.py @@ -31,6 +31,7 @@ class HrPlanWizard(models.TransientModel): user_id=responsible.id ) activity._onchange_activity_type_id() + activity.user_id = responsible.id return { 'type': 'ir.actions.act_window',