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