diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index d4dbbf10a..d903abe97 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -41,8 +41,9 @@ class PropertyRentalWizard(models.Model): receivable = self.env['property.accounts.receivable'].search([ ('contract_id', '=', record.id), + ('management_type_id.name', '=', '租金'), ]) - if receivable: + if not receivable: acc_type = 'new' else: acc_type = None