Files
odoo_source/addons/hr_timesheet
Xavier BOL (xbo) c2e8148368 [FIX] hr_timesheet: fix access error when load_views in project sharing
Before this commit, when the user chooses to encode in 'Days', the
timesheets, when a collaborator accesses to the project sharing feature
for a shared project. This collaborator has an access error because he
does not have any access to `uom.uom` of the current company. Indeed, we
use this uom to change the label of `unit_amount` field for
timesheets linked to this project shared.

This commit fetches the name of the encoding for the current company in
sudo to change the label of `unit_amount` field of timesheets during
the load_views of project sharing feature.

task-2633229

closes #77156

X-original-commit: 575315744a31a975208c82f72403ecebf3585f37
2021-11-05 17:16:01 +01:00
..
2021-09-16 07:17:40 +00:00