添加功能

This commit is contained in:
李鹏宇
2025-10-20 17:15:52 +08:00
parent 149e37d243
commit 574bace522
@@ -641,7 +641,7 @@ class PropertyLeaseContract(models.Model):
for record in self:
now = date.today()
if record.actual_end_time and record.term_start_time:
if now > record.actual_end_time:
if record.actual_end_time > now:
delta = now - record.actual_end_time
if 60<= delta.days < 90:
record.end_comparison = 'blue'