From 07c30f118c4ea05d162d97a287168f363a14da85 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 16:18:52 +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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index 8ff44aeca..44bea1476 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -183,9 +183,8 @@ class PropertyRentalWizard(models.Model): first_day = datetime.strptime(date_field_year_month, '%Y-%m').date() next_month_first_day = first_day + relativedelta(months=1) records = self.env['property.lease.contract'].search([ - # ('actual_start_time', '<', next_month_first_day), - # ('actual_end_time', '>=', first_day), - ('contract_code', '=', '管(2025)001') + ('actual_start_time', '<', next_month_first_day), + ('actual_end_time', '>=', first_day), ]) for record in records: # 获取租金乘数(1 表示按月,3 表示季租金,6 表示半年租金,年后面赋值)