From 17956befd78277cb2494f901973643acd4cb620e Mon Sep 17 00:00:00 2001 From: "chm@openerp.com" <> Date: Tue, 18 Mar 2014 17:09:41 +0100 Subject: [PATCH] [FIX] do not rolback cursor in test mode bzr revid: chm@openerp.com-20140318160941-w4c8r15sl0vag0sa --- openerp/http.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openerp/http.py b/openerp/http.py index 7bf10f7763e..0e6317d33d1 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -222,10 +222,7 @@ class WebRequest(object): def checked_call(___dbname, *a, **kw): # The decorator can call us more than once if there is an database error. In this # case, the request cursor is unusable. Rollback transaction to create a new one. - if self._cr: - print "" - print "rollback http.py checked_call" - print "" + if self._cr and not openerp.tools.config['test_enable']: self._cr.rollback() return self.endpoint(*a, **kw)