93b684d3c7843eac4fd757e5cddd3c31704a8704
Install a database with many langs, arab, french, english, ... Keep english as the default lang. Start a shell and validate a sale-order using the superuser. On the web client, the sale order has been validated in arab instead of in english. In 16.0 the `context_get` method was changed to ensure there was always a lang set in the returned context. It used the following fallback order: context > request. The solution was partial because in case there was no request to extract a lang from, no lang was set on the context. In a recent 16.0 fix (f2523c4a), the mechanism was changed to fix the previous problem. The fallback order became: context > request > first installed lang. This solution is sub-optimal because the first installed lang isn't always the best pick. e.g. when you have a mostly english company but that arab is installed for some website pages, arab is selected instead of english (the langs are alphabetically sorted) In this work, the fallback order is changed once again: 1. The lang set on the user's profile if activated 2. The best lang extracted from the user's browser if activated 3. (new) The lang of the user's current company if activated 4. (new) English if activated 5. The first lang (ordered by ISO code) if any 6. English The 3rd should cover most of ill-cases. For the 4th step, we assume that english is prioritaty to other installed langs when no lang standout. closes odoo/odoo#113186 X-original-commit: 03134bf7cb1e3d63f3be435fbc734e6198ca029b Signed-off-by: Julien Castiaux (juc) <juc@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%