添加功能

This commit is contained in:
李鹏宇
2025-10-20 17:07:08 +08:00
parent 9f50ba7a44
commit 11e08aecc4
@@ -637,7 +637,7 @@ class PropertyLeaseContract(models.Model):
@api.depends('actual_end_time', 'term_start_time')
def _compute_end_comparison(self):
for record in self:
now = fields.Datetime.now()
now = date.today()
if record.actual_end_time and record.term_start_time:
if now > record.actual_end_time:
delta = now - record.actual_end_time