summaryrefslogtreecommitdiff
path: root/setup/setup_dev.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2016-11-14 15:32:34 +0100
committerMartin Trigaux <mat@odoo.com>2016-11-22 11:37:02 +0100
commitb5c555ff0a22643062993d70ac369e7ae834e8b4 (patch)
tree3deb89c83e3680a4179b2ac4bc53e58b8f44c052 /setup/setup_dev.py
parentdff12736dbeae07af5ecd6e916ce72e03ec06c24 (diff)
[FIX] base: avoid duplicated translations
This commits fixes the following scenario: 1. load translations in language X 2. modify the source of a translated record (e.g. email template body) 3. click on 'load translations' button (flag) 4. execute the translation wizard for the same language (to refresh) The translation of the modified record was duplicated. This was due to the field src in the database being different than the msgid in the po file. The src value is updated on the `insert_missing` call. The matching on src for type='model' translations is only needed due to the translations that are split (e.g. xml views or html content). For the other translations, matching on the rec_id is enough. opw-691752 Closes #14310
Diffstat (limited to 'setup/setup_dev.py')
0 files changed, 0 insertions, 0 deletions