[FIX] MRP : When the product being sold is having phantom BoM,the sale order doesn...
authorJay Vora (OpenERP) <jvo@tinyerp.com>
Thu, 31 Mar 2011 13:47:44 +0000 (19:17 +0530)
committerJay Vora (OpenERP) <jvo@tinyerp.com>
Thu, 31 Mar 2011 13:47:44 +0000 (19:17 +0530)
bzr revid: jvo@tinyerp.com-20110331134744-1ma6inhc29ju3zoj

addons/mrp/mrp.py

index 9985be9..9e48cd2 100644 (file)
@@ -1219,6 +1219,7 @@ class StockMove(osv.osv):
                         'product_qty': line['product_qty'],
                         'product_uos': line['product_uos'],
                         'product_uos_qty': line['product_uos_qty'],
+                        'move_dest_id': move.id,
                         'state': state,
                         'name': line['name'],
                         'move_history_ids': [(6,0,[move.id])],