diff --git a/yuthon_hr_employee_approval/models/yuthon_reassignment_approval.py b/yuthon_hr_employee_approval/models/yuthon_reassignment_approval.py index 3921f1c91..8d146cc39 100644 --- a/yuthon_hr_employee_approval/models/yuthon_reassignment_approval.py +++ b/yuthon_hr_employee_approval/models/yuthon_reassignment_approval.py @@ -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, diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index 95ac9023e..ec04363f5 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -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([