添加功能

This commit is contained in:
李鹏宇
2025-11-21 10:14:37 +08:00
parent 36f2d44f66
commit dcbe96f6db
2 changed files with 2 additions and 0 deletions
@@ -102,6 +102,7 @@ class YuthonReassignmentApproval(models.Model):
'name': old_contract.name,
'state': 'open',
'party_id': old_contract.party_id.id,
'company_id': record.change_company_id.id,
'is_annual_salary': old_contract.is_annual_salary,
'date_start': record.change_date,
'date_end': False,
@@ -236,6 +236,7 @@ class PropertyRentalWizard(models.Model):
records = self.env['property.lease.contract'].search([
('actual_start_time', '<', next_month_first_day),
('actual_end_time', '>=', first_day),
('contract_code', '=', '租(2025)18号')
])
if not records:
records = self.env['property.lease.contract'].search([