diff --git a/yuthon_hr_attendance/security/attendance_security_group.xml b/yuthon_hr_attendance/security/attendance_security_group.xml index 22561b046..14a14bc5b 100644 --- a/yuthon_hr_attendance/security/attendance_security_group.xml +++ b/yuthon_hr_attendance/security/attendance_security_group.xml @@ -1,37 +1,33 @@ - + - 排班计划权限 + 行政考勤组 - - 运行班排班计划管理员 - - + + 行政考勤用户 + - - 高压班排班计划管理员 - - + + 行政考勤天河投资领导 + + - - 综合班排班计划管理员 - - + + 行政考勤天河物管领导 + + - - 班组A排班计划管理员 - - + + 行政考勤天河粮储领导 + + - - 班组B排班计划管理员 - - - - - 班组C排班计划管理员 - + + 行政考勤管理员 + + diff --git a/yuthon_hr_employee/models/yuthon_hr_employee.py b/yuthon_hr_employee/models/yuthon_hr_employee.py index 68fc82f1a..89201f090 100644 --- a/yuthon_hr_employee/models/yuthon_hr_employee.py +++ b/yuthon_hr_employee/models/yuthon_hr_employee.py @@ -27,6 +27,7 @@ class YuthonHrEmployee(models.Model): _order = 'number asc' # odoo里是这样做的,一个用户可以多个公司绑定多个员工,每个员工都有自己的部门和岗位 + user_role_ids_changed = fields.Boolean(string="xxx") # bug wecom_userid = fields.Char(string="成员UserID", default="") number = fields.Char(string="序号", store=True) user_number = fields.Char(string="员工编号", default=lambda self: self.env['ir.sequence'].next_by_code('employee_code')) diff --git a/yuthon_will_task/security/yuthon_will_task_security.xml b/yuthon_will_task/security/yuthon_will_task_security.xml index 0a4521854..c9662c942 100644 --- a/yuthon_will_task/security/yuthon_will_task_security.xml +++ b/yuthon_will_task/security/yuthon_will_task_security.xml @@ -4,18 +4,30 @@ 日程组 - - 领导 - - 用户 + + 天河投资领导 + + + + + 天河物管领导 + + + + + 天河粮储领导 + + + 管理者 - + diff --git a/yuthon_will_task/views/yuthon_task_menu.xml b/yuthon_will_task/views/yuthon_task_menu.xml index 6dd96592d..ee0681751 100644 --- a/yuthon_will_task/views/yuthon_task_menu.xml +++ b/yuthon_will_task/views/yuthon_task_menu.xml @@ -11,29 +11,41 @@ action='view_yuthon_will_task_action' groups="group_yuthon_will_task_user" sequence='1'/> - + + + sequence='8'/> + sequence='10'/> + sequence="100"/> [('users_ids', 'in', [uid])] {'search_default_next_seven_days': 1} - - 领导日程 + + 天河投资领导日程 yuthon.will.task tree,calendar - [('user_role_ids.name', 'in', ['董事长', '分管领导', '总经理'])] + [('user_role_ids.name', 'in', ['董事长', '分管领导', '总经理']), ('yuthon_company', '=' 'thtz')] + {'search_default_next_seven_days': 1} + + + 天河物管领导日程 + yuthon.will.task + tree,calendar + [('user_role_ids.name', 'in', ['董事长', '分管领导', '总经理']), ('yuthon_company', '=' 'thwg')] + {'search_default_next_seven_days': 1} + + + 天河粮储领导日程 + yuthon.will.task + tree,calendar + [('user_role_ids.name', 'in', ['董事长', '分管领导', '总经理']), ('yuthon_company', '=' 'thlc')] {'search_default_next_seven_days': 1} diff --git a/yuthon_work_brand/views/attendance_menu.xml b/yuthon_work_brand/views/attendance_menu.xml index 54703521a..09c0b63fb 100644 --- a/yuthon_work_brand/views/attendance_menu.xml +++ b/yuthon_work_brand/views/attendance_menu.xml @@ -4,41 +4,37 @@ - - - @@ -66,11 +62,11 @@ parent="menu_hr_attendance_approval_request_board" sequence="7" action="yuthon_hr_attendance.approval_request_leave"/> - + + + + + - - + + + + + + + + + + + + +