From baaf86ab5d15c4a93f99dbfed0b0e172dec1e2e5 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 21 Aug 2025 19:03:59 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index 610502d82..33cbacedf 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -64,7 +64,8 @@ class PropertyBankStatements(models.Model): penalty_records = self.env['property.accounts.receivable'].search([('bank_id', '=', self.id)]) if not penalty_records: penalty_records = self.env['property.accounts.receivable'].search([ - ('due_date', '=', start_date), + ('due_date', '<=', start_date), + ('due_date_end', '>=', start_date), ('lessee_id', '=', tenant_id), ('contract_id', 'in', rec.contract_ids.ids), ('property_id', 'in', rec.property_ids.ids),