From dcbe96f6dbf83c4aa8dbb0bb99bd1ce2e0cdd412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Fri, 21 Nov 2025 10:14:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../models/yuthon_reassignment_approval.py | 1 + yuthon_property_approval/wizard/property_rental_wizard.py | 1 + 2 files changed, 2 insertions(+) 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([