diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index 5d3a588d0..d4dbbf10a 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -172,7 +172,7 @@ class PropertyRentalWizard(models.Model): # 修正日:如果原始日超过当月最大天数,取当月最后一天 adjusted_day = min(start_day, max_day) date_str = f"{date_field_year_month}-{adjusted_day}" - start_date = datetime.strptime(date_str, "%Y-%m-%d") + start_date = datetime.strptime(date_str, "%Y-%m-%d").date() # 当期应收日期 if not record.is_contract: if start_year_month <= date_field_year_month <= end_year_month: