From c26ff5ed5b28b3aff25533c40ca78df06b52f2f0 Mon Sep 17 00:00:00 2001 From: ljmwkx <1340053001@qq.com> Date: Thu, 9 Jan 2025 00:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_property_approval/models/property_lease_contract.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index dad82d42d..6194c1d83 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -367,6 +367,7 @@ class PropertyLeaseContract(models.Model): free_start = start_date + relativedelta(months=self.rent_free_period_month) if free_start > end_date: free_start = end_date + month_number = (free_start - start_date).days self.sudo().write({'breakdown_ids': [(0, 0, { "unit_price": unit_price, "monthly_amount": monthly_amount,