5490fcc27f64b33879115c790c41b959fdd40d4c
This commit avoid to have a dict by reference that will be global. Now get_default_session return a new dict each time for the context key. From this way the session.context['lang'] is not shared between several users on the same worker. To reproduce the bug, restart the server with 2 workers, make request in lang A on these 2 workers. DEFAULT_SESSION['context']['lang'] now is set to this lang A. Now, make request to an url without lang in path and without cookies and withtout session, you should be redirected to lang B (preferred lang from the request header) but you will be redirect to lang A due to the dict session.context that is shared for the worker... When we initialize the new Session, we get the wrong lang A as value for context.lang, so we don't recompute the expected lang for the end user. X-original-commit: 62179de74862210fe2a055d15b367b1850c24263 fwd-port of #100102 closes odoo/odoo#100910 X-original-commit: 42e46b2d89dde276f796b980f29e33cc216e7cb2 Signed-off-by: Jérémy Kersten <jke@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%