odoo/openerp/addons/base
Martin Trigaux 1f07b9429c [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
2015-11-30 16:41:56 +01:00
..
i18n [I18N] Update translation terms from Transifex 2015-11-29 02:58:05 +01:00
ir [FIX] base: update translations should not duplicate the terms 2015-11-30 16:41:56 +01:00
module [MERGE] forward port of branch saas-3 up to d48aa27 2015-09-11 16:38:00 +02:00
report [REF] OpenERP --> Odoo in various UI texts (2) 2014-07-18 14:59:38 +02:00
res [FIX] base,share: error in_group_xx on user form 2015-11-30 13:11:02 +01:00
rng [ADD] views documentation 2014-08-28 15:02:33 +02:00
security [FIX] base, mail: access to ir.config_parameter is now handled by by 2014-08-29 12:01:50 +02:00
static [IMP] base: description pages containers width 2015-10-26 15:47:10 +01:00
tests [FIX] api: improve decorator `returns` to handle special cases, like method `search` 2015-11-25 09:59:35 +01:00
workflow [MERGE] forward port of branch saas-3 up to b79f64f 2015-03-18 13:16:23 +01:00
__init__.py [FIX] nonsensical import? 2014-03-10 10:59:18 +01:00
__openerp__.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
base.sql [FIX] Size for icon field of ir_module_module table in base.sql 2014-09-04 01:46:44 +02:00
base_data.xml [Fix] Some missed frontend openerp to odoo changes 2015-01-12 16:17:12 +01:00
base_demo.xml [IMP] account: better fix than edbd0df for reconciliation test 2015-01-05 11:30:49 +01:00
base_menu.xml [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00