[IMP] If ids are int or long then convert into list.
bzr revid: bth@tinyerp.com-20120831114125-z3rk36ip710u1czd
This commit is contained in:
parent
b5a8f42641
commit
0cb8be90ab
|
@ -834,7 +834,7 @@ class account_journal(osv.osv):
|
|||
|
||||
@return: Returns a list of tupples containing id, name
|
||||
"""
|
||||
if not isinstance(ids, list):
|
||||
if isinstance(ids, (int, long)):
|
||||
ids = [ids]
|
||||
result = self.browse(cr, user, ids, context=context)
|
||||
res = []
|
||||
|
|
Loading…
Reference in New Issue