[IMP] stock : Added default location.

bzr revid: mdi@tinyerp.com-20120720112501-06fbn7m2bh295hky
This commit is contained in:
Divyesh Makwana (Open ERP)
2012-07-20 16:55:01 +05:30
parent c63ec2c229
commit 9809b7def0
@@ -62,6 +62,9 @@ class stock_change_product_qty(osv.osv_memory):
res.update({'new_quantity': 1})
if 'product_id' in fields:
res.update({'product_id': product_id})
if 'location_id' in fields:
location_id = self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'stock_location_stock', context=context)
res.update({'location_id': location_id.id})
return res
def change_product_qty(self, cr, uid, ids, context=None):