[FIX] stock: `stock.move` `action_confirm` without context passed

This commit is contained in:
Denis Ledoux 2015-06-30 18:07:17 +02:00
parent ddfc07a6a2
commit 3378e6212b
1 changed files with 2 additions and 0 deletions

View File

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