odoo/openerp/addons
Martin Trigaux d6b26c6890 [FIX] base: almost-duplicated translations ignored during import
Translations are not transfered from temporary table tmp_ir_translation_import
to ir_translation if translation already exists (using `find_expr`).
In case of import of QWeb terms (name = 'website'), the criteria was too weak,
finding already present terms in translations for different modules.
e.g. term "Quantity" is already present in a QWeb view from sale module and was
not imported for the translations of the website_sale module.
Fixed by adding the filter criteria 'irt.module = ti.module'

In case QWeb translations for the same term in the same modules were added in
two imports (second term added in the future), the second was still ignored.
Changed condition to check the res_id for views as well.

Fixes #4239
2014-12-16 14:34:43 +01:00
..
base [FIX] base: almost-duplicated translations ignored during import 2014-12-16 14:34:43 +01:00
test_access_rights [ADD] demonstrate broken handling of rules access denial in new API 2014-07-11 13:54:01 +02:00
test_convert move tests 2014-02-09 01:37:45 +01:00
test_converter [IMP] use model._fields instead of model._all_columns to cover all fields 2014-11-04 13:47:57 +01:00
test_documentation_examples [ADD] doc: model inheritance stuff 2014-09-09 09:19:32 +02:00
test_exceptions [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
test_impex [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
test_inherit [IMP] fields: improve _determine_default() and add test for inherited fields 2014-11-06 12:20:39 +01:00
test_limits move tests 2014-02-09 01:37:45 +01:00
test_new_api Merge pull request #3645 from odoo-dev/8.0-fix2manyupdateonchanges-chs 2014-11-25 12:42:36 +01:00
test_uninstall [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
test_workflow [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
__init__.py move tests 2014-02-09 01:37:45 +01:00