From af1bc021d692edac93610cc06c7c0b14894b154c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=A7?= Date: Mon, 16 Jun 2025 14:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E8=B0=83=E6=8B=A8=E5=8D=95=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=89=8D=EF=BC=8C=E5=85=88=E8=BF=9B=E8=A1=8C=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/stock.py | 2 ++ 1 file changed, 2 insertions(+) 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')