[FIX] hr_timesheet: add missing import (bis)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user