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