From 5a4884f0177adb90f783e4b9d8797107c1204024 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 19 Oct 2015 17:02:30 +0200 Subject: [PATCH] [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 9bf6f0310e3eef2bb526ee09e01d1d402649f712 opw-652387 --- addons/stock/wizard/stock_change_product_qty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_change_product_qty.py b/addons/stock/wizard/stock_change_product_qty.py index a1e7e39e49a..364e2653f73 100644 --- a/addons/stock/wizard/stock_change_product_qty.py +++ b/addons/stock/wizard/stock_change_product_qty.py @@ -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