Browse Source

fix cursor obtention

pull/206/head
Charbel Jacquin 9 years ago
parent
commit
f9736b5437
  1. 4
      base_concurrency/res_users.py

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

Loading…
Cancel
Save