[FIX] Solve the problem of read method of res.user when id in long

lp bug: https://launchpad.net/bugs/984976 fixed

bzr revid: jir@tinyerp.com-20120822103707-zkucpqtalyi8ncpt
This commit is contained in:
Patrik 2012-08-22 16:07:07 +05:30 committed by Jignesh Rathod (Open ERP)
parent 5ff60ccd9f
commit 1641bc490a
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class res_users(osv.osv):
result = super(res_users, self).read(cr, uid, ids, fields, context, load)
canwrite = self.pool.get('ir.model.access').check(cr, uid, 'res.users', 'write', False)
if not canwrite:
if isinstance(ids, (int, float)):
if isinstance(ids, (int, long)):
result = override_password(result)
else:
result = map(override_password, result)