From 15e39ebb3bbee86e2952918eab9918ea3f156f3b Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 10 Dec 2013 18:38:28 +0100 Subject: [PATCH] [FIX] stock: stock picking workflow signaling on the wrong model Since 7.0, signaling has changed, and the change was not wrongly done here, on the wrong model (self.signal_ instead of self.pool.get('stock.picking').signal_) Therefore, created chained picking were not confirmed and were left in draft. For instance, push rules were creating internal moves in draft state instead of confirmed state bzr revid: dle@openerp.com-20131210173828-bah4lllgvi61r1s3 --- 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 69d2c6e4791..1484397b5a8 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2106,7 +2106,7 @@ class stock_move(osv.osv): }) new_moves.append(self.browse(cr, uid, [new_id])[0]) if pickid: - self.signal_button_confirm(cr, uid, [pickid]) + self.pool.get('stock.picking').signal_button_confirm(cr, uid, [pickid]) if new_moves: new_moves += self.create_chained_picking(cr, uid, new_moves, context) return new_moves