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