@@ -36,7 +36,7 @@ class PropertyRentalWizard(models.Model):
|
||||
('contract_id', '=', record.id),
|
||||
], limit=1)
|
||||
|
||||
if existing_receivable and record.actual_end_time <= start_date:
|
||||
if existing_receivable or record.actual_end_time <= start_date:
|
||||
return
|
||||
|
||||
receivable = self.env['property.accounts.receivable'].search([
|
||||
|
||||
Reference in New Issue
Block a user