From 9fee3471ca8f72b2a8938f8c9a83234da1f5ae6d Mon Sep 17 00:00:00 2001 From: "ksa (Open ERP)" Date: Tue, 11 Jan 2011 17:23:17 +0530 Subject: [PATCH] [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 --- addons/mrp/mrp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index a57b76bf2ce..03b04478524 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -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