diff --git a/addons/stock/stock.py b/addons/stock/stock.py index bf452a012c2..47976153b62 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2168,6 +2168,8 @@ 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 not context: + context = {} if isinstance(ids, (int, long)): ids = [ids] states = {