From fdceccc83ad4d157bc5329dbb65a73c73f81357e Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Wed, 6 Aug 2025 16:19: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 | 2 +- .../wizard/property_reconciliation_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 82c9c5552..8153ff889 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -65,7 +65,7 @@ class PropertyBankStatements(models.Model): ]) rec.bank_state = 'not_reconciled' rec.registered = 0 - rec.no_amount = rec.yes_amount + rec.no_amount = 0 rec.yes_amount = 0 if accounts: for account in accounts: diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index f1a6b652d..6d3b36e1a 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -177,7 +177,7 @@ class PropertyReconciliationWizard(models.Model): domain.append(('contract_id', '=', line.contract_id.id)) receivable_ids = self.env['property.accounts.receivable'].search(domain) for receivable in receivable_ids: - if not rec.amount_reconciled: + if line.rent == line.amount: is_reconciliation = True else: is_reconciliation = False