From 338d620d5be889de203d0eedccd5b19fe314340b Mon Sep 17 00:00:00 2001 From: yuxianghui <3437689193@qq.com> Date: Mon, 29 Apr 2024 15:53:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20=20=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=88=B0=E5=85=B7=E4=BD=93=E5=BA=93=E4=BD=8D?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E9=87=8F=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_warehouse/models/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py index fdbd0c33..e526d5b9 100644 --- a/sf_warehouse/models/model.py +++ b/sf_warehouse/models/model.py @@ -838,7 +838,7 @@ class Sf_stock_move_line(models.Model): if obj: obj.product_id = record.product_id.id # obj.location_status = '占用' - obj.product_num += record.reserved_uom_qty + obj.product_num += record.qty_done @api.onchange('destination_location_id') def _check_destination_location_id(self): From cc590134f59f39703f71b34081c1135846b56817 Mon Sep 17 00:00:00 2001 From: yuxianghui <3437689193@qq.com> Date: Mon, 29 Apr 2024 16:00:27 +0800 Subject: [PATCH 2/2] 1 --- sf_tool_management/views/tool_base_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_tool_management/views/tool_base_views.xml b/sf_tool_management/views/tool_base_views.xml index 61bbd110..06a60b1c 100644 --- a/sf_tool_management/views/tool_base_views.xml +++ b/sf_tool_management/views/tool_base_views.xml @@ -914,7 +914,7 @@ + 'required': [('pad_product_id', '!=', False), ('dismantle_cause', 'in', ['更换为其他刀具'])]}"/>