[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:
+1
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user