Skip to content
Snippets Groups Projects
Commit 0f4ec369 authored by Jorge Pinna Puissant's avatar Jorge Pinna Puissant
Browse files

[FIX] hr: activity type responsible on hr plans


fine-tuning of bf8a9af1

- 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#54033

Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
parent d723c32f
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,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',
......
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