[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:
parent
92e921bed2
commit
5a4884f017
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue