From f9736b54371328e9aac21f906c2cf33cec3730ea Mon Sep 17 00:00:00 2001 From: Charbel Jacquin Date: Fri, 24 Jul 2015 15:18:17 +0200 Subject: [PATCH] fix cursor obtention --- base_concurrency/res_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_concurrency/res_users.py b/base_concurrency/res_users.py index 9e910fc1c..4ceeaeff5 100644 --- a/base_concurrency/res_users.py +++ b/base_concurrency/res_users.py @@ -21,7 +21,7 @@ import logging import psycopg2 import openerp.exceptions -from openerp import pooler, SUPERUSER_ID +from openerp import SUPERUSER_ID from openerp.osv import orm, fields _logger = logging.getLogger(__name__) @@ -91,7 +91,7 @@ class ResUsers(orm.Model): if not password: return False user_id = False - cr = pooler.get_db(db).cursor() + cr = self.pool.cursor() try: # check if user exists res = self.search(cr, SUPERUSER_ID, [('login', '=', login)])