首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在odoo中的看板项目视图中添加筛选器?

如何在odoo中的看板项目视图中添加筛选器?
EN

Stack Overflow用户
提问于 2017-11-22 00:15:40
回答 1查看 505关注 0票数 0

我在odoo 10中工作,我必须在看板视图中控制对项目的访问。例如,在客户看板视图中,对于一个用户,我想显示所有客户,但该用户只能向他打开那些受影响的客户。

受我的用户影响的客户(演示)=5

所有客户= 20

在看板视图中,我们想要显示20个客户,但是demo只打开了5个客户,而他没有访问15个客户的权限。

EN

回答 1

Stack Overflow用户

发布于 2017-11-22 18:40:52

为此,你可以做这个逻辑,我不打算写代码,因为它需要很多时间:

代码语言:javascript
复制
 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:

这是唯一的方法,因为如果您在操作中指定表单视图,用户可以随时更改视图,因此您应该将其从操作中删除。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47417725

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档