[FIX] stock: config: advanced locations settings

If you manage several warehouses with several locations, do not go back to only
one warehouse when choosing advanced routing.
This commit is contained in:
Thibault Delavallée
2016-05-24 17:12:09 +02:00
parent 7088b0ad9e
commit 0064778c4c
+1 -1
View File
@@ -128,7 +128,7 @@ class StockSettings(models.TransientModel):
@api.onchange('group_stock_adv_location')
def onchange_adv_location(self):
if self.group_stock_adv_location:
if self.group_stock_adv_location and self.warehouse_and_location_usage_level == 0:
self.warehouse_and_location_usage_level = 1
@api.multi