From e8fa9428e86843bacad5456fa44b1fd78a3d2ce6 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 22 Jan 2018 19:34:14 +0100 Subject: [PATCH] [FIX] hr_timesheet: add missing import (bis) --- addons/hr_timesheet/models/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet/models/project.py b/addons/hr_timesheet/models/project.py index babff0fee09..0f177599192 100644 --- a/addons/hr_timesheet/models/project.py +++ b/addons/hr_timesheet/models/project.py @@ -3,6 +3,7 @@ from odoo import models, fields, api from odoo.exceptions import UserError +from odoo.tools.translate import _ class Project(models.Model): @@ -42,7 +43,6 @@ class Task(models.Model): for task in self: task.subtask_effective_hours = sum(child_task.effective_hours + child_task.subtask_effective_hours for child_task in task.child_ids) - @api.multi def write(self, values): result = super(Task, self).write(values)