[FIX]:Duplication of product should not duplicate its BOM if the product is component
lp bug: https://launchpad.net/bugs/701017 fixed bzr revid: ksa@tinyerp.co.in-20110111115317-bmo3nbip63575s92
This commit is contained in:
+2
-2
@@ -342,7 +342,7 @@ class mrp_bom(osv.osv):
|
||||
if context is None:
|
||||
context = {}
|
||||
bom_data = self.read(cr, uid, id, [], context=context)
|
||||
default.update({'name': bom_data['name'] + ' ' + _('Copy')})
|
||||
default.update({'name': bom_data['name'] + ' ' + _('Copy'),'bom_id':False})
|
||||
return super(mrp_bom, self).copy_data(cr, uid, id, default, context=context)
|
||||
|
||||
mrp_bom()
|
||||
@@ -664,7 +664,7 @@ class mrp_production(osv.osv):
|
||||
"""
|
||||
stock_mov_obj = self.pool.get('stock.move')
|
||||
production = self.browse(cr, uid, production_id, context=context)
|
||||
|
||||
|
||||
final_product_todo = []
|
||||
|
||||
produced_qty = 0
|
||||
|
||||
Reference in New Issue
Block a user