a84f6965eefb01b041263660f26053957ae353d8
Use case: --------- Create a task with public user At the end of the transaction sometimes the flush is done with an env where su is False. This cause the public user enable to read data needed for the recomputation of is_closed field which is related_sudo=False Why is this random ? -------------------- The flush in transaction select the first env in the set of env with a user. Since the order in the set is not deterministic Sometimes an env with su=True is choosen and everything is fine but sometimes it's not and we get an access error It happened in 3 acts this commitf98470e6cfadd related_sudo=False for perf improvement pre v13.0 this commit42c430a539introduce a new related field is_closed that copy paste the related_sudo=False this commit cf8bb933ac3a9fd6344ca79617a2f7317fbc20af stored the field and stored computed field should always be compute_sudo=True Solution -------- Remove all the related_sudo=False, they don't make sense since v13.0 closes odoo/odoo#93349 X-original-commit: e0fe5c5a1c6932f02ca0822c5c26618c91fd50b3 Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com> Signed-off-by: Thibault Francois <tfr@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%