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)])