[FIX]isinstance second parameter takes tuple of classes

bzr revid: csn@openerp.com-20140214105004-gsiz32czy9rzkp52
This commit is contained in:
Cedric Snauwaert 2014-02-14 11:50:04 +01:00
parent 2f982e6bea
commit d849118ecf
1 changed files with 1 additions and 1 deletions

View File

@ -1768,7 +1768,7 @@ class stock_move(osv.osv):
""" Confirms stock move or put it in waiting if it's linked to another move.
@return: List of ids.
"""
if isinstance(ids, ('int', 'long')):
if isinstance(ids, (int, long)):
ids = [ids]
states = {
'confirmed': [],