[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:
parent
5ff60ccd9f
commit
1641bc490a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue