From 8dac7616760b7c4479d080a30fce5de04b2a7367 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: Fri, 17 Oct 2025 17:00:00 +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/wizard/property_rental_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index 092dffadf..5d3a588d0 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -39,9 +39,9 @@ class PropertyRentalWizard(models.Model): if existing_receivable and record.actual_end_time <= start_date: return - receivable = self.env['property.accounts.receivable'].search({ + receivable = self.env['property.accounts.receivable'].search([ ('contract_id', '=', record.id), - }) + ]) if receivable: acc_type = 'new' else: