489494e733920e4f18e8c86b278166156ff678cf
When doing a copy, create the new translations directly in SQL and handle potential conflicts. Conflicts can occure in case of reinstallation as showed in opw-1955062 and opw-1950117. In case of "leftovers" of translations (e.g. remaining after the uninstallation of a module), creating the new translations (when reinstalling the module) may produce a conflict with (type, name, res_id, lang) and raise an error. This is NOT a problem of reading .po file during installation (which handles correctly conflicts) but of business code creating new records and linked translations (e.g. website copying website.menu records). Removing old translations during uninstall is handled in a previous commit in ir.model.fields _drop_column method. This commit fixes the reinstallation on instances with leftover translations and fixes the issue without needing a manual intervention (i.e. delete the old translations manually). Closes odoo/odoo#32056 Signed-off-by: Raphael Collet (rco) <rco@openerp.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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%