diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index a24ab1ce1..0bd5f2721 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -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