summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/hr_timesheet/models/hr_timesheet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_timesheet/models/hr_timesheet.py b/addons/hr_timesheet/models/hr_timesheet.py
index 540c3fe26ec..f8001201a57 100644
--- a/addons/hr_timesheet/models/hr_timesheet.py
+++ b/addons/hr_timesheet/models/hr_timesheet.py
@@ -51,7 +51,7 @@ class AccountAnalyticLine(models.Model):
def _compute_encoding_uom_id(self):
for analytic_line in self:
- analytic_line.encoding_uom_id = self.env.company.timesheet_encode_uom_id
+ analytic_line.encoding_uom_id = analytic_line.company_id.timesheet_encode_uom_id
@api.onchange('project_id')
def onchange_project_id(self):