Kirti Savalia(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-17487-ksa into 
lp:openobject-addons/6.0.

Requested reviews:
  nel (nel-tinyerp)
  Vinay Rana (openerp) (vra-openerp)
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17487-ksa/+merge/91417

case:17487

Remove the parent company and login with demo data.create the stock move.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17487-ksa/+merge/91417
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-17487-ksa.
=== modified file 'stock/stock.py'
--- stock/stock.py	2012-01-10 12:52:13 +0000
+++ stock/stock.py	2012-02-03 11:47:19 +0000
@@ -112,7 +112,8 @@
         @return: Dictionary of values
         """
         prod_id = context and context.get('product_id', False)
-
+        if not prod_id:
+            return dict([(i, {}.fromkeys(field_names, 0.0)) for i in ids])
         product_product_obj = self.pool.get('product.product')
 
         cr.execute('select distinct product_id, location_id from stock_move where location_id in %s', (tuple(ids), ))

_______________________________________________
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