From 92044d1fcc734bb13813a5e11cfec9dfb91dcf39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Sat, 22 Nov 2025 14:40:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_maintain/models/property_device_repair.py | 2 +- yuthon_maintain/models/property_report_repair.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_maintain/models/property_device_repair.py b/yuthon_maintain/models/property_device_repair.py index ba1d9a99a..07f54d96f 100644 --- a/yuthon_maintain/models/property_device_repair.py +++ b/yuthon_maintain/models/property_device_repair.py @@ -48,7 +48,7 @@ class PropertyDeviceRelief(models.Model): }) workflow_record_id = self.env['soong.workflow.record'].search([ ('code', '=', self.code), - ]) + ], limit=1) soong_workflow_line_list.append((0, 0, { 'model': 'processing.order.approval', 'res_id': order_id.id, diff --git a/yuthon_maintain/models/property_report_repair.py b/yuthon_maintain/models/property_report_repair.py index 4b56cb76a..3fc87581a 100644 --- a/yuthon_maintain/models/property_report_repair.py +++ b/yuthon_maintain/models/property_report_repair.py @@ -72,7 +72,7 @@ class PropertyRentRelief(models.Model): }) workflow_record_id = self.env['soong.workflow.record'].search([ ('code', '=', self.code), - ]) + ], limit=1) soong_workflow_line_list.append((0, 0, { 'model': 'processing.order.approval', 'res_id': order_id.id,