zoukankan      html  css  js  c++  java
  • Access denied with payslip工资条非同部门员工不能创建bug

    Access Denied

    The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

    (Document type: Pay Slip, Operation: read)

    This is because on settings->groups-> HR officer has a following record rule: Employee Payslip ['|', ('employee_id.user_id', '=', user.id), ('employee_id.department_id.manager_id.user_id', '=', user.id)] (this means that only employee whose payslip it is can edit or create it or the manager of the department where employee belongs to can edit it. Note: you have to define Manager of department from HR->configuration->Departments->select department->select manager) and because also Manager inherits from officer same rule restricts both user groups Manager and Officer.

    If you don't want this restriction you can deactivate this record rule from Settings->Security->Record rules

  • 相关阅读:
    感谢梦想
    感谢迷茫
    CSS动画
    ES6笔记③
    Object的增。删。查。改。遍历
    js创建对象的方式 三种
    js 控制台的错误提示
    ES6笔记② 箭头函数
    ES6笔记① var 和 let的区别
    js冒泡排序
  • 原文地址:https://www.cnblogs.com/chjbbs/p/3612286.html
Copyright © 2011-2022 走看看