Atik Agewan(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-877998-aag into 
lp:openobject-addons.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)
Related bugs:
  Bug #877998 in OpenERP Addons: "trunk : onchange doesn't not take the changes 
into accoount in BoM"
  https://bugs.launchpad.net/openobject-addons/+bug/877998

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-877998-aag/+merge/79806


 Hello,

   MRP :improved in onchange_product_id method of BOM to fetch the correct Name.

 Thanks
  Atik
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-877998-aag/+merge/79806
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-877998-aag.
=== modified file 'mrp/mrp.py'
--- mrp/mrp.py	2011-10-02 17:31:16 +0000
+++ mrp/mrp.py	2011-10-19 12:39:57 +0000
@@ -274,9 +274,7 @@
             
         if product_id:
             prod = self.pool.get('product.product').browse(cr, uid, product_id, context=context)
-            v = {'product_uom': prod.uom_id.id}
-            if not name:
-                v['name'] = prod.name
+            v = {'name': prod.name, 'product_uom': prod.uom_id.id}
             return {'value': v}
         return {}
 

_______________________________________________
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