From d7f5ddff74746dc9c8ea3ff259527726dc7fdf6e Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Mon, 26 May 2008 22:34:17 +0200 Subject: [PATCH] Fix on outgoing move of customer packing: Confirm only moves in waiting state. --- packing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packing.py b/packing.py index 857a95cf0d..acd890eb79 100644 --- a/packing.py +++ b/packing.py @@ -420,7 +420,8 @@ class PackingOut(OSV): move_obj = self.pool.get('stock.move') packing = self.browse(cursor, user, packing_id, context=context) move_obj.set_state_done( - cursor, user, [m.id for m in packing.outgoing_moves], + cursor, user, + [m.id for m in packing.outgoing_moves if m.state == 'waiting'], context=context) self.write( cursor, user, packing_id,