添加功能
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user