添加功能
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user