diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index d903abe97..7ad47e4cc 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -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([