From 4dd4e709fc36207bec78095a9f24c8721b844b60 Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Fri, 30 Nov 2012 15:07:31 +0100 Subject: [PATCH] [FIX] Empty cache after data test assertion failure bzr revid: cto@openerp.com-20121130140731-zfg0g0pcas61rvw5 --- bin/tools/convert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tools/convert.py b/bin/tools/convert.py index db8d718..ebfc4fe 100644 --- a/bin/tools/convert.py +++ b/bin/tools/convert.py @@ -49,7 +49,7 @@ from tools.translate import _ from yaml_import import convert_yaml_import # List of etree._Element subclasses that we choose to ignore when parsing XML. -from tools import SKIPPED_ELEMENT_TYPES +from tools import SKIPPED_ELEMENT_TYPES, cache # Import of XML records requires the unsafe eval as well, # almost everywhere, which is ok because it supposedly comes @@ -869,6 +869,7 @@ form: module.record_id""" % (xml_id,) rec.sourceline, etree.tostring(rec).strip(), exc_info=True) self.cr.rollback() + cache.clean_caches_for_db(self.cr.dbname) raise return True -- 1.7.10.4