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,