@@ -83,7 +84,6 @@
-
diff --git a/yuthon_property_approval/models/property_lease_renewal.py b/yuthon_property_approval/models/property_lease_renewal.py
index c872ea3a2..a3d19cce0 100644
--- a/yuthon_property_approval/models/property_lease_renewal.py
+++ b/yuthon_property_approval/models/property_lease_renewal.py
@@ -178,8 +178,8 @@ class PropertyLeaseRenewal(models.Model):
})
else:
receivable_ids = self.env['property.accounts.receivable'].search([
- ('due_date', '<=', self.early_quitting_date),
- ('contract_id', '=', self.contract_id.id),
+ ('due_date', '<=', rec.early_quitting_date),
+ ('contract_id', '=', rec.contract_id.id),
])
if any(not receivable.is_reconciliation for receivable in receivable_ids):
raise UserError("该合同下存在未对账的应收单,无法提前退押金")