[FIX] base: force local cursor in case of mismatch

This commit is contained in:
Olivier Dony
2016-10-03 19:48:09 +02:00
parent 12634e1227
commit ba7880a249
+1
View File
@@ -511,6 +511,7 @@ class res_users(osv.osv):
if not passwd:
# empty passwords disallowed for obvious security reasons
raise openerp.exceptions.AccessDenied()
db = self.pool.db_name
if self.__uid_cache.setdefault(db, {}).get(uid) == passwd:
return
cr = self.pool.cursor()