我在odoo 10中工作,我必须在看板视图中控制对项目的访问。例如,在客户看板视图中,对于一个用户,我想显示所有客户,但该用户只能向他打开那些受影响的客户。
受我的用户影响的客户(演示)=5
所有客户= 20
在看板视图中,我们想要显示20个客户,但是demo只打开了5个客户,而他没有访问15个客户的权限。
发布于 2017-11-22 18:40:52
为此,你可以做这个逻辑,我不打算写代码,因为它需要很多时间:
1 - create a new window action to show the clients in canban view only or list too
because the original action show the records in all views.
2- create a new kanban view or edit that one to add a button when user click
on that button call a method on the model check if the user is allowed
to open the client if Ok open the record in form view or else show error:这是唯一的方法,因为如果您在操作中指定表单视图,用户可以随时更改视图,因此您应该将其从操作中删除。
https://stackoverflow.com/questions/47417725
复制相似问题