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