68a3c80d30420525bcbd578b482e135486e8768e
Before this commit, when the current user is in project sharing and see the form view of a task with at least a subtask. He cannot create another one because of an error in the `_compute_portal_user_names` method. Indeed, it is because we want to update the cache to get the user_ids of the task related since the portal user cannot see the users assigned to the task since he cannot access an internal user. This update cache is made by calling the `_read` method but this method checks after having fetching the data if the self is equal to the recordset fetched. If the `self` contained newIds, then the method will raise an error because a Task with newId != Task with id in db. This commit fixes the compute method to call the _read method only on a self with no NewIds to avoid this issue and correctly updates the cache to get the name of the users assigned to a task in project sharing for the portal user. Fix found by Florian Damhaut <flda@odoo.com> Co-authored-by Florian Damhaut <flda@odoo.com> opw-2745857 closes odoo/odoo#84298 X-original-commit: f61c4f43365d38a955c497e022f0e8f18f50a6b2 Forward-port-of: #84189 Related: odoo/enterprise#24207 Signed-off-by: Laurent Stukkens (ltu) <ltu@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%