64864a640216a04a5a7a541951ebc76f52b8dd7e
TLDR: if we have a term in python and js code, then js translation may not work STEPS: * install point_of_sale * activate and switch to French translation * go to "Point of sale >> Reporting >> Orders" * Click "Time Ranges >> Range" BEFORE: "This Week" is not translated AFTER: All terms are translated WHY: * Translation imports merges translation if they have same src https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_translation.py#L196 https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_translation.py#L111 So, we get either js term for "This Week" or py term, but not both * web/webclient/translations loads only translation with comments==openerp-web https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_translation.py#L900 So, if we don't have js term, then the translation is not loaded to UI * This only fix problem of no translation, but doesn't fix overriden translation (i.e. when same english term, e.g. Free, has different translation in frontend and backend). This part can be fixed by changing english term to something more unambiguous. --- opw-2357399 closes odoo/odoo#80875 X-original-commit: 4b4234134bcb139c6c6a12992c5ab6195c3b2710 Signed-off-by: Martin Trigaux (mat) <mat@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%