diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 86c0cc282..0436623c7 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -627,7 +627,7 @@ class PropertyReconciliationLine(models.Model): def onchange_remake(self): for line in self: actual_date = fields.Date.to_date(line.reconciliation_id.bank_id.start_time + relativedelta(hours=8)) - if round(line.rent or 0, 2) == 0 and line.collection_type != 'penalty': + if round(line.amount or 0, 2) == 0 and line.collection_type != 'penalty': line.remake = "" return if line.amount and line.collection_type != 'penalty':