Merge pull request !5773 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-10-17 09:12:11 +00:00
committed by Gitee
@@ -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