From 3378e6212b4f33c935b61fd1f6ddca9544a924d3 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 30 Jun 2015 18:07:17 +0200 Subject: [PATCH] [FIX] stock: `stock.move` `action_confirm` without context passed --- addons/stock/stock.py | 2 ++ 1 file changed, 2 insertions(+) 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 = {