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 @@ +