How to hide projects in “my timesheet” for users not assigned to the project in openerp 7.0?

牧云@^-^@ 提交于 2019-12-11 06:42:33

问题


Currently i have a question regarding the my timesheet function. If i create a project and select the timesheet/stundenzettel box, the employees are able to enter their working hours on the specific project using the my timesheet/"mein stundenzettel" function. So far so good. Unfortunately every user can book on every project where the timesheet/stundenzettel box is checked, regardless if he is a member of the project team or not.

As an example i have some freelancers working and some projects but i do not want them to

see all company projects
be able to book their working time on wrong projects

Is there a way to only show projects where the user is assigned to?


回答1:


You need to define the access control list for the timesheet model. You can do that in the Settings >> Technical >> Security >> Access Control List.

In the ACL you can define the rules for accessing the different models. If you need to see how it works, you can check ACLs defined by the sales module.



来源:https://stackoverflow.com/questions/20372612/how-to-hide-projects-in-my-timesheet-for-users-not-assigned-to-the-project-in

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!