From d849118ecfa47805bdd0ffe5dc62864725577b9b Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Fri, 14 Feb 2014 11:50:04 +0100 Subject: [PATCH] [FIX]isinstance second parameter takes tuple of classes bzr revid: csn@openerp.com-20140214105004-gsiz32czy9rzkp52 --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 56c0d3a6f3b..f8ad42c66fa 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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': [],