diff --git a/yuthon_hr_employee/__manifest__.py b/yuthon_hr_employee/__manifest__.py index 332fc8051..401fb3e40 100644 --- a/yuthon_hr_employee/__manifest__.py +++ b/yuthon_hr_employee/__manifest__.py @@ -13,6 +13,7 @@ 'website': 'https://www.pengyuthon.com', 'depends': ['hr'], 'data': [ + 'date/user_role_date.xml', 'security/ir.model.access.csv', 'views/yuthon_hr_employee_views.xml', 'views/yuthon_job_lv_views.xml', diff --git a/yuthon_hr_employee/date/user_role_date.xml b/yuthon_hr_employee/date/user_role_date.xml new file mode 100644 index 000000000..4b28b6f68 --- /dev/null +++ b/yuthon_hr_employee/date/user_role_date.xml @@ -0,0 +1,399 @@ + + + + 普通员工 + System global role + + + + 常务副秘书长 + Departmental private role + association + + + + 总经理 + System global role + + + + 理事长 + System global role + + + + 常务副会长 + System global role + + + + 副总经理 + System global role + + + + 监事会主席 + System global role + + + + 秘书处办公室主任 + System global role + + + + 分管领导 + System global role + + + + 部门副经理 + System global role + + + + 秘书处办公室副主任 + System global role + + + + 部门经理 + System global role + + + + 各企业班子(发文) + System global role + + + + 试用期员工 + System global role + + + + 物业部副总经理 + Departmental private role + Leasing Department II (Former Property Management Department + + + + 理事会成员 + System global role + + + + 安全办成员 + System global role + + + + 实习 + System global role + + + + 副院长 + System global role + + + + 院长 + System global role + + + + 党员 + System global role + + + + 科创中心 + System global role + + + + 需考勤人员 + System global role + + + + 财务(物业) + System global role + + + + 集团安委会 + System global role + + + + + 天投城建安全办 + System global role + + + + 集团安全办 + System global role + + + + 天投城建安委会 + System global role + + + + 天投城建安委会 + System global role + + + + 公司领导 + System global role + + + + 领导班子 + System global role + + + + 董事长 + System global role + + + + 执行董事 + Departmental private role + Grain storage company + + + + + 秘书长 + Departmental private role + association + + + + 副主任 + System global role + + + + 工会委员 + System global role + + + + 风控审计经理 + Departmental private role + Risk Control Audit Department + + + + 风控管理岗 + Departmental private role + Risk Control Audit Department + + + + 系统管理员 + OA administrator + + + + 安全办副主任 + System global role + + + + 投融资部经理 + Departmental private role + Capital Operations Department + + + + 投融资部副总经理 + Departmental private role + Capital Operations Department + + + + 投融资部副经理 + Departmental private role + Capital Operations Department + + + + 投融资发展部 + Departmental private role + Capital Operations Department + + + + 项目开发部 + Departmental private role + Investment development department + + + + 项目部经理 + Departmental private role + Investment development department + + + + + 人事专员 + Departmental private role + Party and Mass Human Resources Department + + + + 党建专员 + Departmental private role + Party and Mass Human Resources Department + + + + + 人事管理员 + Departmental private role + Party and Mass Human Resources Department + + + + 人事主管 + Departmental private role + Party and Mass Human Resources Department + + + + 物业部 + Departmental private role + Leasing Department II (Former Property Management Department + + + + 物业部经理 + Departmental private role + Leasing Department II (Former Property Management Department + + + + 物业部副经理 + Departmental private role + Leasing Department II (Former Property Management Department + + + + 工程主管 + Departmental private role + Leasing Department II (Former Property Management Department + + + + 企业管理部 + Departmental private role + enterprise management department + + + + 企业管理部经理 + Departmental private role + enterprise management department + + + + 财务部 + Departmental private role + accounting department + + + + 财务部经理 + Departmental private role + accounting department + + + + 财务部副经理 + Departmental private role + accounting department + + + + 会计 + Departmental private role + accounting department + + + + 出纳 + Departmental private role + accounting department + + + + 办公室 + Departmental private role + administration office + + + + 主任 + Departmental private role + administration office + + + + 办公室副主任 + Departmental private role + administration office + + + + 公文管理员 + Departmental private role + administration office + + + + 厨卫人员 + Departmental private role + administration office + + + + 办公库管 + Departmental private role + administration office + + + + 子企业人员 + Departmental private role + administration office + + + + 信息发布员 + Departmental private role + administration office + + + + 交通安全员 + System global role + + + + 外派 + Departmental private role + expatriate + + + + \ No newline at end of file diff --git a/yuthon_hr_employee/models/yuthon_user_role.py b/yuthon_hr_employee/models/yuthon_user_role.py index 0f68ec188..92cda2235 100644 --- a/yuthon_hr_employee/models/yuthon_user_role.py +++ b/yuthon_hr_employee/models/yuthon_user_role.py @@ -6,4 +6,20 @@ class YuthonUserRole(models.Model): _name = 'yuthon.user.role' name = fields.Char(string="角色名称") - + user_type = fields.Selection([("OA administrator", "OA管理员"), + ("System global role", "系统全局角色"), + ("Departmental private role", "部门私有角色")], string="角色类型") + Affiliated_organization_department = fields.Selection( + [("Leasing Department II (Former Property Management Department", "租务二部(原物业经营部)"), + ("Grain storage company", "粮储公司"), + ("association", "协会"), + ("Risk Control Audit Department", "风控审计部"), + ("Capital Operations Department", "资本运营部"), + ("Investment development department", "投资发展部"), + ("Party and Mass Human Resources Department", "党群人力资源部"), + ("enterprise management department", "企业管理部"), + ("accounting department", "财务部"), + ("administration office", "办公室"), + ("expatriate", "外派")],string = "所属机构部门") + create_time = fields.Datetime(string="创建时间", default=fields.Datetime.now) + end_time = fields.Datetime(string="结束时间")