diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-11-22 11:33:10 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-11-22 11:33:32 +0100 |
| commit | c3756b7d9aa71fd929be3b6ed71d492de37e272e (patch) | |
| tree | 9b98c4b84339ea7f24cf419f870121739e9fe14c /addons/website/static/src/xml/website.contentMenu.xml | |
| parent | 00bdac72802daa1471bc041db87d23ec52883173 (diff) | |
[FIX] base: avoid duplicated translations after update
This commits fixes the following scenario:
1. load the translations for any language
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.
Detects the xml_translate and html_translate fields to avoid matching on src for
these translations.
opw-691752
Closes #14310
Diffstat (limited to 'addons/website/static/src/xml/website.contentMenu.xml')
0 files changed, 0 insertions, 0 deletions
