[FIX] allow long to be used as id in browse_record

bzr revid: christophe@tinyerp.com-20081121220937-psm6o20p3yqkq98i
This commit is contained in:
Christophe Simonis 2008-11-21 23:09:37 +01:00
parent c4668b6175
commit e2ef2a1782
1 changed files with 1 additions and 1 deletions

View File

@ -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