[FIX]mrp/stock: when trying to sell a phantom bom, always sell components of bom...
authorCedric Snauwaert <csn@openerp.com>
Thu, 21 Mar 2013 09:02:56 +0000 (10:02 +0100)
committerCedric Snauwaert <csn@openerp.com>
Thu, 21 Mar 2013 09:02:56 +0000 (10:02 +0100)
whatever the procurement method

bzr revid: csn@openerp.com-20130321090256-5no4nqis9zfxrsqb

addons/mrp/stock.py

index ae7edf5..60a50c9 100644 (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),