Skip to content

Commit

Permalink
Merge pull request #7 from jbaudoux/pr95-locationssmartbuttons-fix
Browse files Browse the repository at this point in the history
Fix stock_storage_type putaway sequence "show locations" button.
  • Loading branch information
lmignon authored Sep 6, 2021
2 parents 6fdee89 + cad66ef commit 2e87354
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 2e87354

Please sign in to comment.