Skip to content

Commit

Permalink
fixup! Factorize src/dest methods and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
guewen committed Dec 6, 2019
1 parent 18471cc commit d7bb61e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stock_picking_type_routing_operation/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,11 @@ def _apply_move_location_dest_routing_operation(self):
picking_type = destination._find_picking_type_for_routing("dest")
if not picking_type:
continue

if self.env["stock.location"].search(
[
("id", "=", picking_type.default_location_dest_id.id),
("id", "parent_of", move.location_dest_id.id),
("id", "=", picking_type.default_location_src_id.id),
("id", "parent_of", move.location_id.id),
]
):
# This move has been created for the routing operation,
Expand Down

0 comments on commit d7bb61e

Please sign in to comment.