@@ -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
|
||||
|
||||
Reference in New Issue
Block a user