From 3b585400f8a72eb04f9c3dc13076d903ba42d500 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 18 Aug 2025 14:19:22 +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 --- .../wizard/property_reconciliation_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 54fb651aa..151b02620 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -127,8 +127,8 @@ class PropertyReconciliationWizard(models.Model): new_lines.append((0, 0, penalty_line_vals)) # 上月违约金未对账延续 receivable_penalties = self.env['property.accounts.receivable'].search([ - ('property_id', '=', line.property_id.id), - ('contract_id', '=', line.contract_id.id), + ('property_id', 'in', self.bank.property_ids.ids), + ('contract_id', 'in', self.bank.contract_ids.ids), ('is_reconciliation', '=', False), ('management_type_id.name', '=', '违约金') ])