Khushboo Bhatt(openerp) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1069681-kbh into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1069681-kbh/+merge/130963

Hello,

  I have solved the issue of Names of components after duplicating a BOM.

Thanks,
KBH.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1069681-kbh/+merge/130963
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1069681-kbh.
=== modified file 'mrp/mrp.py'
--- mrp/mrp.py	2012-10-15 05:19:41 +0000
+++ mrp/mrp.py	2012-10-23 09:35:57 +0000
@@ -371,7 +371,7 @@
         if default is None:
             default = {}
         bom_data = self.read(cr, uid, id, [], context=context)
-        default.update(name=_("%s (copy)") % (bom_data['name']), bom_id=False)
+        default.update(name=_("%s (copy)") % (bom_data['name']), bom_id=False, bom_lines=False)
         return super(mrp_bom, self).copy_data(cr, uid, id, default, context=context)
 
     def create(self, cr, uid, vals, context=None):

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to