[FIX]stock: wizard stock change qty, object_reference return an integer and not a browse record

bzr revid: dle@openerp.com-20130801142119-3kt689udw6j9zofz
This commit is contained in:
Denis Ledoux 2013-08-01 16:21:19 +02:00
parent ef18962918
commit 5895b17ca1
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class stock_change_product_qty(osv.osv_memory):
self.pool.get('stock.location').check_access_rule(cr, uid, [location_id], 'read', context=context)
except (orm.except_orm, ValueError):
location_id = False
res.update({'location_id': location_id and location_id.id or False})
res.update({'location_id': location_id})
return res
def change_product_qty(self, cr, uid, ids, context=None):