561775fda90ea988d7bb6a1bcd001ab937f460ed
Steps ===== - Install hr_timesheet - Create a project shared (in edition) with a portal user - Creata a task with a subtask and log timesheets for the subtask - As a portal user open the parent task form - Go in the timesheet tab - Click on the button "Sub-tasks Hours/Days Spent" at the bottom of the page Issue ===== An access error appears for an uom.uom record. Cause ===== Portal users have no access to uom.uom records. The method _apply_timesheet_label uses this model to determine if the time spent needs to be displayed with an 'hours' or a 'days' label. This raises a traceback when it is called by a portal user. Fix === The method _apply_timesheet_label is called as sudo, following the fix that was already done in project sharing (see odoo/odoo#73341). task-3527521 closes odoo/odoo#139125 X-original-commit: 01b1cf07bc1fb618d34065271cdc07fce561337f Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%