添加功能

This commit is contained in:
李鹏宇
2025-09-15 12:10:36 +08:00
parent bec2b6f138
commit 3db5cd0c3c
2 changed files with 2 additions and 2 deletions
@@ -640,7 +640,7 @@ class PropertyRentList(models.Model):
('lessee_id', '=', rec.lessee_id.id),
('due_date', '>=', first_day_of_month),
('due_date', '<=', last_day_of_month),
('contract_id', 'in', rec.id),
('contract_id', '=', rec.id),
], limit=1)
if existing_receivable:
rec.unlink()
@@ -33,7 +33,7 @@ class PropertyRentalWizard(models.Model):
('lessee_id', '=', record.lessee_id.id),
('due_date', '>=', first_day_of_month),
('due_date', '<=', last_day_of_month),
('contract_id', 'in', record.id),
('contract_id', '=', record.id),
], limit=1)
if existing_receivable: