diff --git a/addons/hr/wizard/hr_plan_wizard.py b/addons/hr/wizard/hr_plan_wizard.py index c0f2d663e4c..3390196a9c8 100644 --- a/addons/hr/wizard/hr_plan_wizard.py +++ b/addons/hr/wizard/hr_plan_wizard.py @@ -24,12 +24,13 @@ class HrPlanWizard(models.TransientModel): responsible = activity_type.get_responsible_id(self.employee_id) if self.env['hr.employee'].with_user(responsible).check_access_rights('read', raise_exception=False): - self.employee_id.activity_schedule( + activity = self.employee_id.activity_schedule( activity_type_id=activity_type.activity_type_id.id, summary=activity_type.summary, note=activity_type.note, user_id=responsible.id ) + activity._onchange_activity_type_id() return { 'type': 'ir.actions.act_window',