From 3db5cd0c3c8f41e8c28d038ff100def4cd0edd44 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: Mon, 15 Sep 2025 12:10:36 +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_property_approval/models/inherit_yuthon_property.py | 2 +- yuthon_property_approval/wizard/property_rental_wizard.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index 7c96a7235..7b04b093f 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -640,7 +640,7 @@ class PropertyRentList(models.Model): ('lessee_id', '=', rec.lessee_id.id), ('due_date', '>=', first_day_of_month), ('due_date', '<=', last_day_of_month), - ('contract_id', 'in', rec.id), + ('contract_id', '=', rec.id), ], limit=1) if existing_receivable: rec.unlink() diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index 11b2c7bff..338ee52d5 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -33,7 +33,7 @@ class PropertyRentalWizard(models.Model): ('lessee_id', '=', record.lessee_id.id), ('due_date', '>=', first_day_of_month), ('due_date', '<=', last_day_of_month), - ('contract_id', 'in', record.id), + ('contract_id', '=', record.id), ], limit=1) if existing_receivable: