From 35bfe16a4f24a92d406d876fd8012168f24922ba Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Sun, 19 Jan 2025 20:08:48 +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/inherit_hr_leave_allocation.py | 1 + .../models/yuthon_fixes_approval.py | 1 + .../views/yuthon_fixes_approval_views.xml | 29 +++++++++---------- yuthon_hr_attendance/views/card_approval.xml | 14 ++++----- .../views/overtime_approval.xml | 12 ++++---- .../views/yuthon_abnormal_approval_views.xml | 14 ++++----- .../yuthon_adjustments_approval_views.xml | 14 ++++----- .../views/yuthon_customer_approval_views.xml | 15 ++++------ .../models/yuthon_appointment_approval.py | 2 +- .../models/yuthon_leaving_approval.py | 2 +- .../models/yuthon_reassignment_approval.py | 2 +- .../models/yuthon_regularization_approval.py | 2 +- .../models/yuthon_reward_approval.py | 2 +- .../models/yuthon_service_approval.py | 2 +- .../models/yuthon_transfer_approval.py | 3 +- .../yuthon_appointment_approval_views.xml | 2 +- .../views/yuthon_leaving_approval_views.xml | 2 +- .../yuthon_reassignment_approval_views.xml | 2 +- .../yuthon_recruitment_approval_views.xml | 10 +++---- .../yuthon_regularization_approval_views.xml | 2 +- .../views/yuthon_reward_approval_views.xml | 8 ++--- .../views/yuthon_service_approval_views.xml | 14 ++++----- .../views/yuthon_transfer_approval_views.xml | 11 +++---- yuthon_issue/views/issue_approval_views.xml | 10 +++---- .../models/yuthon_lessee_notice.py | 2 +- .../views/yuthon_lessee_notice.xml | 2 +- .../views/property_eligibility.xml | 14 +++++---- .../property_evaluate_application_views.xml | 13 +++------ .../views/property_intention_views.xml | 14 +++++---- .../views/property_merge_approval_views.xml | 4 ++- .../views/property_split_approval_views.xml | 4 ++- .../views/property_transfer_views.xml | 10 +++---- .../views/yuthon_office_supplies_views.xml | 14 +++++---- 33 files changed, 126 insertions(+), 127 deletions(-) diff --git a/yuthon_holiday/models/inherit_hr_leave_allocation.py b/yuthon_holiday/models/inherit_hr_leave_allocation.py index 28d2692c8..f819aee03 100644 --- a/yuthon_holiday/models/inherit_hr_leave_allocation.py +++ b/yuthon_holiday/models/inherit_hr_leave_allocation.py @@ -96,6 +96,7 @@ class HrLeaveAllocation(models.Model): 'default_users_id': self.employee_id.user_id.id, 'default_leave_id': self.id, 'default_now_type': now_type, + 'default_holiday_status_id': self.holiday_status_id.id, 'default_original_days': self.number_of_days_display, 'default_original_hours': self.number_of_days_display, } diff --git a/yuthon_holiday/models/yuthon_fixes_approval.py b/yuthon_holiday/models/yuthon_fixes_approval.py index d6d402403..59c2a0ba4 100644 --- a/yuthon_holiday/models/yuthon_fixes_approval.py +++ b/yuthon_holiday/models/yuthon_fixes_approval.py @@ -16,6 +16,7 @@ class YuthonFixesApproval(models.Model): now_type = fields.Selection([('days', '按天'), ('hours', '按小时')], string="修正类型") now_days = fields.Float(string="现休假时长(天)") now_hours = fields.Float(string="现休假时长(小时)") + holiday_status_id = fields.Many2one('hr.leave.type', string="休假类型") department_id = fields.Many2one(related='users_id.employee_id.department_id', string="部门") is_issues = fields.Boolean(string='是否上会') related_issues_id = fields.Many2one('issue.library', string="关联议题") diff --git a/yuthon_holiday/views/yuthon_fixes_approval_views.xml b/yuthon_holiday/views/yuthon_fixes_approval_views.xml index 79628d5f8..3294b201a 100644 --- a/yuthon_holiday/views/yuthon_fixes_approval_views.xml +++ b/yuthon_holiday/views/yuthon_fixes_approval_views.xml @@ -18,21 +18,28 @@
-