Skip to content

Commit e9b23f3

Browse files
committed
Merge PR OCA#2233 into 15.0
Signed-off-by pedrobaeza
2 parents aa506fe + dd0bfe2 commit e9b23f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stock_move_location/wizard/stock_move_location.py

+4
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ def action_move_location(self):
266266
picking = self._create_picking()
267267
else:
268268
picking = self.picking_id
269+
# Prevent putaway rules to be excuted when we don't need to
270+
picking = picking.with_context(
271+
avoid_putaway_rules=not self.apply_putaway_strategy
272+
)
269273
self._create_moves(picking)
270274
if not self.env.context.get("planned"):
271275
moves_to_reassign = self._unreserve_moves()

0 commit comments

Comments
 (0)