[FIX] mrp: there is no reason why selling a 'make_to_stock' product with phantom BOM should not explode the BOM (a 'make_to_order' product was already doing it, there is no reason to treat them differently)
bzr revid: qdp-launchpad@openerp.com-20130321142947-3sj0icxyn3bbrc5n
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