[FIX]mrp/stock: when trying to sell a phantom bom, always sell components of bom and not final product

whatever the procurement method

bzr revid: csn@openerp.com-20130321090256-5no4nqis9zfxrsqb
This commit is contained in:
Cedric Snauwaert
2013-03-21 10:02:56 +01:00
parent 31a6842d80
commit 4f94d8a820
+1 -1
View File
@@ -47,7 +47,7 @@ class StockMove(osv.osv):
product_obj = self.pool.get('product.product')
wf_service = netsvc.LocalService("workflow")
processed_ids = [move.id]
if move.product_id.supply_method == 'produce' and move.product_id.procure_method == 'make_to_order':
if move.product_id.supply_method == 'produce':
bis = bom_obj.search(cr, uid, [
('product_id','=',move.product_id.id),
('bom_id','=',False),