From c40ecfb6cec9e25d426b7c1d3f269d68ae39d39f Mon Sep 17 00:00:00 2001 From: yuxianghui <3437689193@qq.com> Date: Tue, 8 Apr 2025 17:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=AF=BF=E5=91=BD=E5=88=B0=E6=9C=9F?= =?UTF-8?q?=E6=8B=86=E8=A7=A3=E5=88=9B=E5=BB=BA=E7=9A=84=E7=BB=84=E8=A3=85?= =?UTF-8?q?=E5=8D=95=E6=B7=BB=E5=8A=A0=E5=88=B0=E5=AF=B9=E5=BA=94=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E5=BA=93=E5=AD=98=E7=BB=84=E8=A3=85=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_tool_management/models/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sf_tool_management/models/base.py b/sf_tool_management/models/base.py index a9ee08be..505ede36 100644 --- a/sf_tool_management/models/base.py +++ b/sf_tool_management/models/base.py @@ -1542,6 +1542,9 @@ class FunctionalToolDismantle(models.Model): 'reason_for_applying': '刀具寿命到期' }) + # 将新的组装单更新到对应的功能刀具安全库存的组装单列表中 + self.functional_tool_id.safe_inventory_id.sudo().sf_functional_tool_assembly_ids = [(4, assembly_id.id)] + return { 'type': 'ir.actions.act_window', 'res_model': 'sf.functional.tool.assembly',