summaryrefslogtreecommitdiff
path: root/addons/hr/wizard
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2020-07-03 09:15:06 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2020-07-03 13:03:46 +0000
commit600bfa11963e98a02cbec8a2273a27dcbd91be7a (patch)
tree57c4ae4f16b96a3a49a81cbed078e53d9b2d208b /addons/hr/wizard
parent3230ae6441ddd502bbf8ccea6313137669aaa31a (diff)
[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) <jpp@odoo.com>
Diffstat (limited to 'addons/hr/wizard')
-rw-r--r--addons/hr/wizard/hr_plan_wizard.py1
1 files changed, 1 insertions, 0 deletions
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',