Skip to content
Snippets Groups Projects
Commit a6ee3d66 authored by Jurgen (jugj)'s avatar Jurgen (jugj)
Browse files

[IMP] hr : Update activity type summary when type changed


task-3429069

closes odoo/odoo#128731

Signed-off-by: default avatarSofie Gvaladze (sgv) <sgv@odoo.com>
parent b4ed8544
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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