43bb9e18b5ca37e10a15b7a83cfa2e34f98faa66
Steps ===== - Install sale_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 a res.partner record. Cause ===== https://github.com/odoo/odoo/pull/135528 introduced the field allowed_so_line_ids on model account.analytic.line. This field is computed based on the values of the field commercial_partner_id (res.partner relation). However, portal users have no access to res.partner records and the presence of this field in account.analytic.line view (for timesheet) therefore raises an access error for portal user. Fix === A sudo is used in method _default_sale_line_domain to be able to fetch the ids of the partners linked to the timesheet, even as a portal user. task-3572112 closes odoo/odoo#139866 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%