@@ -183,9 +183,8 @@ class PropertyRentalWizard(models.Model):
|
||||
first_day = datetime.strptime(date_field_year_month, '%Y-%m').date()
|
||||
next_month_first_day = first_day + relativedelta(months=1)
|
||||
records = self.env['property.lease.contract'].search([
|
||||
# ('actual_start_time', '<', next_month_first_day),
|
||||
# ('actual_end_time', '>=', first_day),
|
||||
('contract_code', '=', '管(2025)001')
|
||||
('actual_start_time', '<', next_month_first_day),
|
||||
('actual_end_time', '>=', first_day),
|
||||
])
|
||||
for record in records:
|
||||
# 获取租金乘数(1 表示按月,3 表示季租金,6 表示半年租金,年后面赋值)
|
||||
|
||||
Reference in New Issue
Block a user