From 08550d7bb082bad830758d8a936e35deded22e80 Mon Sep 17 00:00:00 2001 From: "Jurgen (jugj)" Date: Mon, 17 Jul 2023 14:20:55 +0200 Subject: [PATCH] [IMP] hr : Update activity type summary when type changed task-3429069 closes odoo/odoo#134550 X-original-commit: a6ee3d66ad15e32fc2f339f0f51f9267daead26d Signed-off-by: Sofie Gvaladze (sgv) Signed-off-by: Jurgen Gjini (jugj) --- addons/hr/models/hr_plan_activity_type.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/hr/models/hr_plan_activity_type.py b/addons/hr/models/hr_plan_activity_type.py index 572f72504eb..05b04fb542f 100644 --- a/addons/hr/models/hr_plan_activity_type.py +++ b/addons/hr/models/hr_plan_activity_type.py @@ -35,8 +35,10 @@ class HrPlanActivityType(models.Model): @api.depends('activity_type_id') def _compute_default_summary(self): for plan_type in self: - if not plan_type.summary and plan_type.activity_type_id and plan_type.activity_type_id.summary: + if plan_type.activity_type_id and plan_type.activity_type_id.summary: plan_type.summary = plan_type.activity_type_id.summary + else: + plan_type.summary = False def get_responsible_id(self, employee): warning = False