diff options
| author | Victor Feyens <vfe@odoo.com> | 2020-06-23 14:15:39 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2020-06-23 14:15:39 +0000 |
| commit | c250bec9ffccd48375fdce382cc4bb6e84b086f4 (patch) | |
| tree | 88739faacd7de92d1135c561de94228f0311c6b3 /addons/hr_timesheet | |
| parent | 117c391ac71c2441fc5416e0d4d0e4f28d9d7c0c (diff) | |
[FIX] hr_timesheet: timesheet encoding unit of measure.
Potentially wrong in multi-company environment.
closes odoo/odoo#53513
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/hr_timesheet')
| -rw-r--r-- | addons/hr_timesheet/models/hr_timesheet.py | 2 |
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): |
