diff --git a/sf_manufacturing/models/stock.py b/sf_manufacturing/models/stock.py index 0e3f76cf..4134de94 100644 --- a/sf_manufacturing/models/stock.py +++ b/sf_manufacturing/models/stock.py @@ -637,6 +637,8 @@ class StockPicking(models.Model): if lot_ids: move.action_clear_lines_show_details() move.action_show_details() + # 先进行设置数量 + self.action_set_quantities_to_reservation() res = super().button_validate() # lot_ids = None # product_ids = self.move_ids.mapped('product_id')