Skip to content

Commit

Permalink
Fix stock_storage_type putaway sequence "show locations" button.
Browse files Browse the repository at this point in the history
Fix backport error in commit 8518d72
  • Loading branch information
jbaudoux committed Sep 6, 2021
1 parent 6fdee89 commit cad66ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stock_storage_type/models/stock_storage_location_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cad66ef

Please sign in to comment.