From 11e08aecc4e2ae0399c35f556cc8a52e0cde31c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Mon, 20 Oct 2025 17:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_property_approval/models/property_lease_contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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