添加功能

This commit is contained in:
李鹏宇
2025-09-17 14:38:58 +08:00
parent dcec0ed518
commit 6a40fb32f2
@@ -196,7 +196,7 @@ class PropertyRentalWizard(models.Model):
date_str = f"{date_field_year_month}-{start_day}"
start_date = datetime.strptime(date_str, "%Y-%m-%d")
# 当期应收日期
if start_year_month <= date_field_year_month < end_year_month:
if start_year_month <= date_field_year_month <= end_year_month:
self.create_rent_list(record, rent_id, rent_amount, start_date, multiplier)
self.create_management_list(record, start_date)
@@ -219,6 +219,7 @@ class PropertyRentalWizard(models.Model):
records = self.env['property.lease.contract'].search([
('actual_start_time', '<=', last_day),
('actual_end_time', '>=', first_day),
('contract_code', '=', '租(2022)N01号')
])
for record in records:
date_data = {