添加功能

This commit is contained in:
李鹏宇
2026-04-14 15:32:35 +08:00
parent 5be6fa5c89
commit 846b03c7d8
@@ -49,6 +49,7 @@ class PropertyRentalWizard(models.Model):
], limit=1)
if existing_receivable or record.actual_end_time <= start_date:
return
receivable = self.env['property.accounts.receivable'].search([
@@ -75,6 +76,9 @@ class PropertyRentalWizard(models.Model):
"month": self.select_month,
})
else:
if rent_id.is_push and not existing_receivable:
rent_id.is_push = False
rent_id.write({
"contract_id": record.id,
"due_date": start_date,