[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) <sgv@odoo.com>
Signed-off-by: Jurgen Gjini (jugj) <jugj@odoo.com>
This commit is contained in:
Jurgen (jugj)
2023-09-07 09:00:31 +00:00
parent 0ba867a88f
commit 08550d7bb0
+3 -1
View File
@@ -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