From 6b42a13b55517152024f697c00f2cf2a69bb50b2 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Tue, 3 Jun 2025 20:10:57 +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 --- .../security/yuthon_holiday_group.xml | 5 + .../models/hr_attendance_month.py | 3 +- .../security/planning_group.xml | 106 +----------------- .../views/hr_attendance_month_views.xml | 1 + yuthon_salary/models/inherit_hr_payslip.py | 1 + .../views/inherit_hr_payslip_views.xml | 5 +- yuthon_salary/wizard/salary_compute_wizard.py | 28 ++++- .../wizard/salary_compute_wizard_views.xml | 4 +- 8 files changed, 46 insertions(+), 107 deletions(-) diff --git a/yuthon_holiday/security/yuthon_holiday_group.xml b/yuthon_holiday/security/yuthon_holiday_group.xml index 76f799240..ad309f170 100644 --- a/yuthon_holiday/security/yuthon_holiday_group.xml +++ b/yuthon_holiday/security/yuthon_holiday_group.xml @@ -13,5 +13,10 @@ + + 假期报表多公司 + + [('company_id', 'in', company_ids)] + \ No newline at end of file diff --git a/yuthon_hr_attendance/models/hr_attendance_month.py b/yuthon_hr_attendance/models/hr_attendance_month.py index c3a3fcc78..72bfdf456 100644 --- a/yuthon_hr_attendance/models/hr_attendance_month.py +++ b/yuthon_hr_attendance/models/hr_attendance_month.py @@ -76,10 +76,11 @@ class HrAttendanceMonth(models.Model): class HrAttendanceMonthDetail(models.Model): _name = "hr.attendance.month.detail" _inherit = ['portal.mixin', 'mail.thread', 'mail.activity.mixin'] - _description = "出勤月度汇总明细" + _description = "考勤确认单" name = fields.Char(related='employee_id.name') employee_id = fields.Many2one('hr.employee', string="员工", readonly=True) + company_id = fields.Many2one(related="employee_id.company_id", string="公司", store=True) department_id = fields.Many2one('hr.department', string="部门", related="employee_id.department_id", readonly=True) # userid = fields.Char(string='userid') attendance_year_id = fields.Many2one('hr.attendance.year', string="统计年份") diff --git a/yuthon_hr_attendance/security/planning_group.xml b/yuthon_hr_attendance/security/planning_group.xml index b0873bd40..ca6614887 100644 --- a/yuthon_hr_attendance/security/planning_group.xml +++ b/yuthon_hr_attendance/security/planning_group.xml @@ -1,107 +1,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + 考勤确认单多公司 + + [('company_id', 'in', company_ids)] + 出勤统计多公司 diff --git a/yuthon_hr_attendance/views/hr_attendance_month_views.xml b/yuthon_hr_attendance/views/hr_attendance_month_views.xml index 4a015e592..12444f31d 100644 --- a/yuthon_hr_attendance/views/hr_attendance_month_views.xml +++ b/yuthon_hr_attendance/views/hr_attendance_month_views.xml @@ -102,6 +102,7 @@ +