添加功能

This commit is contained in:
李鹏宇
2026-06-12 17:35:19 +08:00
parent 45623acbb6
commit 084a48a5b6
@@ -687,7 +687,7 @@ class PropertyAccountsReceivable(models.Model):
if record.management_type_id.name == '违约金':
if record.due_date:
rent_id = self.env['property.accounts.receivable'].search([
('contract_id', '=', self.contract_id.id),
('contract_id', '=', record.contract_id.id),
('management_type_id.name', '=', '租金'),
('payout_date', '=', record.due_date),
])