6db6eb60e6865eb1dbc5bb11692e4869cf6ef5bb
Currently there is a bug where the Chart of Accounts is not translated if the language is installed after the CoA. Steps to reproduce: 1. Create a CA company (where both French and English are used) 2. Set the CA Chart of Accounts 3. Go to the general settings 4. Add the French language and switch to it 5. Go back to the CoA 6. The CoA is not translated This is because the variable `installed` is wrongfully placed in the code. In the current flow, we install the new language, then we check the installed language, therefore the new language is marked as an already installed language. Therfore the `to_install` variable will always be empty. This commit fixes this by first storing the already installed languages, then installing the new one, and then compute the ones to install making sure that the newly installed one will be used afterwards to translate the Chart of Accounts. task-id 3091315 closes odoo/odoo#107500 X-original-commit: a3c3c3ccfc8e769ce39dbf38263f92e449b44abb Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com> Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@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%