diff --git a/odoo/addons/base/tests/test_translate.py b/odoo/addons/base/tests/test_translate.py index 455d9681a85..276c05bf7ba 100644 --- a/odoo/addons/base/tests/test_translate.py +++ b/odoo/addons/base/tests/test_translate.py @@ -365,7 +365,6 @@ class TestTranslation(TransactionCase): self.assertEqual(cheese.with_context(lang='fr_FR').name, 'Fromage') self.assertEqual(cheese.with_context(lang='en_US').name, 'The Cheese') cheese.flush() - cheese.invalidate_cache() # set a new master value cheese.with_context(lang='en_US').write({'name': 'Delicious Cheese'}) @@ -686,7 +685,6 @@ class TestXMLTranslation(TransactionCase): # modify source term in view (fixed type in 'cheeze') terms_en = ('Bread and cheese',) view.with_env(env_en).write({'arch_db': archf % terms_en}) - view.invalidate_cache(fnames=['arch_db'], ids=view.ids) # check whether translations have been synchronized self.assertEqual(view.with_env(env_nolang).arch_db, archf % terms_en) @@ -698,7 +696,6 @@ class TestXMLTranslation(TransactionCase): # modify source term in view in another language with close term new_terms_fr = ('Pains et fromage',) view.with_env(env_fr).write({'arch_db': archf % new_terms_fr}) - view.invalidate_cache(fnames=['arch_db'], ids=view.ids) # check whether translations have been synchronized self.assertEqual(view.with_env(env_nolang).arch_db, archf % new_terms_fr) @@ -707,7 +704,7 @@ class TestXMLTranslation(TransactionCase): self.assertEqual(view.with_env(env_nl).arch_db, archf % terms_nl) def test_sync_update(self): - """ Check translations after minor change in source terms. """ + """ Check translations after major changes in source terms. """ archf = '
' terms_src = ('Subtotal', 'Subtotal:') terms_en = ('', 'Sub total:') @@ -721,9 +718,8 @@ class TestXMLTranslation(TransactionCase): self.assertEqual(len(translations), 2) # modifying the arch should sync existing translations without errors - view.write({ - "arch": archf % ('Subtotal', 'Subtotal: