From 65da4827e8748b60a9df53b90ecc6e22f4d2915f Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 9 Jan 2025 10:10:40 +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 40ea8477f..99feb3c5f 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -179,7 +179,7 @@ class PropertyLeaseContract(models.Model): def onchange_lease_term_year(self): for record in self: if record.lease_term_year or record.lease_term_month: - if record.lease_term_day: + if not record.lease_term_day: if record.term_start_time: year = record.lease_term_year if record.lease_term_year else 0 month = record.lease_term_month if record.lease_term_month else 0