summaryrefslogtreecommitdiff
path: root/addons/web_view_editor/static/src
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2015-11-18 16:56:52 +0100
committerMartin Trigaux <mat@odoo.com>2015-11-30 16:41:56 +0100
commit1f07b9429cc3de7fc65df6942191e1014b6296f2 (patch)
tree70511648828137de67e3435571f1644894bc6762 /addons/web_view_editor/static/src
parenta70287d42cd838f58c7f1a16bee4731528fe9b69 (diff)
[FIX] base: update translations should not duplicate the terms
When a translated term is modified (e.g. content of an email.template), reloading the translations of the module (e.g. when updating the module) used to recreate a new, duplicare translation for the modified term (instead of ignoring the existing one). This was due to the fact the matching expression (find_expr), when loading translations, used the field 'src' (source term) as criteria for (almost) all ir.translation records. While this is true for type 'code' or 'selection', this is not true for 'model' where the source content may have been changed. In case of translation of type 'model', matching on the name and res_id should be enough for the matching expression and then, avoid creating duplicated translations. Note: this patch must NOT be present in 9.0 due to the xml_translate attribute that splits an xml content into small parts. opw 654031
Diffstat (limited to 'addons/web_view_editor/static/src')
0 files changed, 0 insertions, 0 deletions