95ed21795d1618c0144f50d5265cee6c21c332d4
Instead of previous long methods, use a class to clarify what the export actually does. The TranslationModuleReader is written to copy the API of the TranslationFileWriter. This way, exporting translations is reduced to: 1. create a reader that will fetch all module translations (either from db or from static files) 2. create a writer in a specific format (po or csv) 3. export the content from the reader to the writer Simplify the writer by deducing modules from exported translations instead of fetching it again in a oneliner (this way can benefit from yield operations) Remove the 'all_installed' possibility in modules as it was not working (creating query with 2 WHERE clause). The new methode _get_translatable_records works on a per model basis. This will allow a big performance gain as the previous code was making a .exists() for each record individually. In the future, this method could be removed as the main goal is to test the presence of the rare attribute _translate=False.
…
…
…
…
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%