Amit Dodiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-5937-ado into 
lp:openobject-addons/6.0.

Requested reviews:
  Priyesh (Open ERP) (pso-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-5937-ado/+merge/62839

Hello,

I have change the code of currency field in stock_partial_picking.py because 
the product should need company_id for currency.

Thanks.
Amit
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-5937-ado/+merge/62839
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-5937-ado.
=== modified file 'stock/wizard/stock_partial_picking.py'
--- stock/wizard/stock_partial_picking.py	2011-04-04 10:30:03 +0000
+++ stock/wizard/stock_partial_picking.py	2011-05-30 07:11:05 +0000
@@ -128,7 +128,7 @@
         if pick_type == 'in':
             move_memory.update({
                 'cost' : picking.product_id.standard_price, 
-                'currency' : picking.product_id.company_id.currency_id.id, 
+                'currency' : picking.product_id.company_id and picking.product_id.company_id.currency_id.id or False, 
             })
         return move_memory
 

_______________________________________________
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