[FIX] stock: update inventory wizard, default location_id

In a multi-company environment, you might not
have the access to the stock location
`stock.stock_location_stock`,
in such a case, you should not set it as default value.

This is a regression of revision 9bf6f0310e

opw-652387
This commit is contained in:
Denis Ledoux 2015-10-19 17:02:30 +02:00
parent 92e921bed2
commit 5a4884f017
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class stock_change_product_qty(osv.osv_memory):
try:
self.pool.get('stock.location').check_access_rule(cr, uid, [location_id], 'read', context=context)
except (orm.except_orm, ValueError):
pass
location_id = False
res['location_id'] = location_id
return res