f7782f6c76b413086908525db96488d76db61cd0
Before this commit, the company recordset returned by env.company/env.companies was sometimes in sudo and sometimes not. If 'allowed_company_ids' was specified in the context, the returned recordset wasn't sudoed. If no company was specified through the context, company/companies was using env.user.company_id(s) as fallback, which is always sudoed since env.user is always sudoed. With this commit, the behavior is now consistent, we enforce that the returned recordset is only sudoed if the current environment is. As everybody has read access on res.company records, there is no need to return the company as a sudoed record. When a specific operation has to be done on the company, then a sudo should be called if needed. closes odoo/odoo#62074 Signed-off-by: Raphael Collet (rco) <rco@openerp.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%