Skip to content

Commit 97e385f

Browse files
committed
Find leaf sub-locations instead of all children
We will never do a put-away in an intermediate location, so they should never be kept as candidate locations for the put-away. Follow the change in #12
1 parent 5f23f4b commit 97e385f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stock_storage_type_putaway_abc/models/stock_location.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_storage_locations(self, products=None):
4141
return super().get_storage_locations(products)
4242

4343
def _get_abc_locations(self, products):
44-
return self.children_ids._sort_abc_locations(first(products).abc_storage)
44+
return self.leaf_location_ids._sort_abc_locations(first(products).abc_storage)
4545

4646
def _sort_abc_locations(self, product_abc):
4747
product_abc = product_abc or "a"

0 commit comments

Comments
 (0)