bebfa9b52c4aa066896b48293db76bb8ccf96955
Using a `frozenset` leads to non deterministic issues. Because when nothing is set in the context key `allowed_company_ids`, `self.env.companies` will fallback on `self['res.company'].browse(user_company_ids)` Since the browsing is done on a non ordered set, the recordset doesn't follow the `_order` set on the model, by definition. This has the effect of not being deterministic when iterating on `self.env.companies`. For instance https://runbot.odoo.com/runbot/build/20539598 closes odoo/odoo#104538 X-original-commit: bfee55b14c918c44ebbb2563d5dc0e102edf396e Signed-off-by: Rémy Voet <ryv@odoo.com> Signed-off-by: William André (wan) <wan@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%