mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
@@ -285,6 +285,10 @@ class StockMoveLocationWizard(models.TransientModel):
|
||||
picking = self._create_picking()
|
||||
else:
|
||||
picking = self.picking_id
|
||||
# Prevent putaway rules to be excuted when we don't need to
|
||||
picking = picking.with_context(
|
||||
avoid_putaway_rules=not self.apply_putaway_strategy
|
||||
)
|
||||
self._create_moves(picking)
|
||||
if not self.env.context.get("planned"):
|
||||
moves_to_reassign = self._unreserve_moves()
|
||||
|
||||
Reference in New Issue
Block a user