diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-11-14 15:32:34 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-11-22 11:37:02 +0100 |
| commit | b5c555ff0a22643062993d70ac369e7ae834e8b4 (patch) | |
| tree | 3deb89c83e3680a4179b2ac4bc53e58b8f44c052 /doc/reference/workflow/split.dot | |
| parent | dff12736dbeae07af5ecd6e916ce72e03ec06c24 (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 'doc/reference/workflow/split.dot')
0 files changed, 0 insertions, 0 deletions
