[FIX] allow long to be used as id in browse_record
bzr revid: christophe@tinyerp.com-20081121220937-psm6o20p3yqkq98i
This commit is contained in:
parent
c4668b6175
commit
e2ef2a1782
|
@ -116,7 +116,7 @@ class browse_record(object):
|
|||
'''
|
||||
if not context:
|
||||
context = {}
|
||||
assert id and type(id)==type(1), _('Wrong ID for the browse record, got %s, expected an integer.') % str(id)
|
||||
assert id and isinstance(id, (int, long,)), _('Wrong ID for the browse record, got %r, expected an integer.') % (id,)
|
||||
self._list_class = list_class or browse_record_list
|
||||
self._cr = cr
|
||||
self._uid = uid
|
||||
|
|
Loading…
Reference in New Issue