diff --git a/addons/hr/models/hr_plan.py b/addons/hr/models/hr_plan.py index 8f8288ebd95..c1d897e9d38 100644 --- a/addons/hr/models/hr_plan.py +++ b/addons/hr/models/hr_plan.py @@ -22,6 +22,7 @@ class HrPlanActivityType(models.Model): ('employee', 'Employee'), ('other', 'Other')], default='employee', string='Responsible', required=True) responsible_id = fields.Many2one('res.users', 'Responsible Person', help='Specific responsible of activity if not linked to the employee.') + note = fields.Html('Note') @api.onchange('activity_type_id') def _onchange_activity_type_id(self): diff --git a/addons/hr/views/hr_plan_views.xml b/addons/hr/views/hr_plan_views.xml index 15647929b11..df0e8174803 100644 --- a/addons/hr/views/hr_plan_views.xml +++ b/addons/hr/views/hr_plan_views.xml @@ -76,6 +76,7 @@ + diff --git a/addons/hr/wizard/hr_plan_wizard.py b/addons/hr/wizard/hr_plan_wizard.py index 02e05023be1..cbd195a7344 100644 --- a/addons/hr/wizard/hr_plan_wizard.py +++ b/addons/hr/wizard/hr_plan_wizard.py @@ -25,6 +25,7 @@ class HrPlanWizard(models.TransientModel): 'res_id': self.employee_id.id, 'res_model_id': self.env['ir.model']._get('hr.employee').id, 'summary': activity_type.summary, + 'note': activity_type.note, 'activity_type_id': activity_type.activity_type_id.id, 'user_id': activity_type.get_responsible_id(self.employee_id).id, })