From 237a990362a3eb3cd33a7dfb48db311de40aee9c Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Wed, 25 Jun 2025 18:08:14 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 4b8cb887e..04f01a8c8 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -19,8 +19,9 @@ class PropertyReconciliationWizard(models.Model): @api.depends('reconciliation_line_ids') def _compute_amount(self): - self.amount_been_reconciled = 0.0 - self.amount_reconciled = 0.0 + for rec in self: + rec.amount_been_reconciled = 0.0 + rec.amount_reconciled = 0.0 for line in self.reconciliation_line_ids: self.amount_been_reconciled += line.amount if self.actual_total > self.amount_been_reconciled: