From 4b68a7b30afee019efb4c08365de79050aad08f8 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 22 Jan 2018 19:08:57 +0100 Subject: [PATCH] [FIX] hr_timesheet: add missing import --- addons/hr_timesheet/models/project.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/hr_timesheet/models/project.py b/addons/hr_timesheet/models/project.py index bb8686094b8..babff0fee09 100644 --- a/addons/hr_timesheet/models/project.py +++ b/addons/hr_timesheet/models/project.py @@ -2,6 +2,7 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, fields, api +from odoo.exceptions import UserError class Project(models.Model): @@ -55,4 +56,4 @@ class Task(models.Model): 'project_id': project_id, 'account_id': self.env['project.project'].browse(project_id).sudo().analytic_account_id.id }) - return result \ No newline at end of file + return result