diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index 22766eda5..092dffadf 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -39,7 +39,7 @@ class PropertyRentalWizard(models.Model): if existing_receivable and record.actual_end_time <= start_date: return - receivable = self.env['property.accounts.receivable'].create({ + receivable = self.env['property.accounts.receivable'].search({ ('contract_id', '=', record.id), }) if receivable: