[FIX]:duplicate picking create
authorKirti Savalia (OpenERP) <ksa@tinyerp.com>
Tue, 3 Jan 2012 12:53:37 +0000 (18:23 +0530)
committerKirti Savalia (OpenERP) <ksa@tinyerp.com>
Tue, 3 Jan 2012 12:53:37 +0000 (18:23 +0530)
lp bug: https://launchpad.net/bugs/911094 fixed

bzr revid: ksa@tinyerp.com-20120103125337-3ef4j8h4yqmrivk9

addons/stock/wizard/stock_partial_picking.py

index 6f81541..06446f2 100644 (file)
@@ -111,7 +111,7 @@ class stock_partial_picking(osv.osv_memory):
     def _partial_move_for(self, cr, uid, move):
         partial_move = {
             'product_id' : move.product_id.id,
-            'quantity' : move.state in ('assigned','new') and move.product_qty or 0,
+            'quantity' : move.state in ('assigned','new','confirmed') and move.product_qty or 0,
             'product_uom' : move.product_uom.id,
             'prodlot_id' : move.prodlot_id.id,
             'move_id' : move.id,