[FIX] test_impex: cursor cache in tests

As the same cursor is used by all tests, make sure to clear its `cache`
upon setup.
This commit is contained in:
Raphael Collet
2020-11-24 13:23:32 +00:00
parent 6319e0c0ce
commit c1279cd52a
@@ -40,6 +40,7 @@ class ImporterCase(common.TransactionCase):
super(ImporterCase, self).setUp()
self.model = self.env[self.model_name]
self.env['ir.model.data'].clear_caches()
self.cr.cache.clear()
def import_(self, fields, rows, context=None):
return self.model.with_context(context or {}).load(fields, rows)