审批流代码判断:
result = True
if record.transfer_reason.code!='T001' and record.employee_id.user_id.id==env.user.id:
raise ValidationError('除【调岗】外,该单据不允许员工自己发起!!!')
审批流代码判断:
result = True
if record.transfer_reason.code!='T001' and record.employee_id.user_id.id==env.user.id:
raise ValidationError('除【调岗】外,该单据不允许员工自己发起!!!')