From c3e5e894e079ff89f3fee7df70d8339d385a89b5 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 9 Jan 2025 15:02:45 +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 ede72dea3..48fc8497d 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -370,7 +370,7 @@ class PropertyLeaseContract(models.Model): record.first_year_rent = all_period_rent - def do_generate_details_core(self, write_db=False, start_date, end_date): + def do_generate_details_core(self, write_db=False, start_date=None, end_date=None): all_period_rent = 0 monthly_amount = self.total_area * self.unit_price