-
Change
-
解决结果: 完成
-
Medium
-
无
-
A-Aden-Y2020031
-
PRO
-
基础通用功能
result = {}
if self.employee_id.job_info_id.location_id.code in ('LC006', 'LC007'):
the_dep = self.employee_id.job_info_id.department_id
max_num = 7
while not the_dep.x_sscstaff3 and max_num>0:
the_dep = the_dep.parent_department_id
max_num-=1
try:
result = the_dep.x_sscstaff3.user_id
except:
result = result
在以上基础上 当员工的管辖地不是LC006/LC007时,查找员工部门上的staff2(用作审批角色)