diff --git a/openerp/addons/base/res/res_users.py b/openerp/addons/base/res/res_users.py index b85c49abf15..772f7f7290b 100644 --- a/openerp/addons/base/res/res_users.py +++ b/openerp/addons/base/res/res_users.py @@ -394,7 +394,8 @@ class res_users(osv.osv): # (In this way, there is no opportunity to have two transactions # interleaving their cr.execute()..cr.commit() calls and have one # of them rolled back due to a concurrent access.) - cr.autocommit(True) + if not openerp.tools.config['test_enable']: + cr.autocommit(True) # check if user exists res = self.search(cr, SUPERUSER_ID, [('login','=',login)]) if res: