Skip to content
Snippets Groups Projects
Commit c250bec9 authored by Victor Feyens's avatar Victor Feyens
Browse files

[FIX] hr_timesheet: timesheet encoding unit of measure.


Potentially wrong in multi-company environment.

closes odoo/odoo#53513

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 117c391a
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
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