diff --git a/stock_storage_type/models/stock_storage_location_sequence.py b/stock_storage_type/models/stock_storage_location_sequence.py index 702a4ffc50..aa4f549151 100644 --- a/stock_storage_type/models/stock_storage_location_sequence.py +++ b/stock_storage_type/models/stock_storage_location_sequence.py @@ -72,7 +72,8 @@ def _format_package_storage_type_message(self, last=False): def button_show_locations(self): action = self.env.ref("stock.action_location_form").read()[0] action["domain"] = [ - ("parent_path", "=ilike", "{}%".format(self.location_id.parent_path)), + ("parent_left", ">=", self.location_id.parent_left), + ("parent_right", "<=", self.location_id.parent_right), ( "allowed_location_storage_type_ids", "in",