I have installed the Document Management Module. I have some users who represent companies, and they only belong to the knowledge group so they can view some documents. If I try this configuration, these users can view the directories, but they can´t view the documents inside them. Instead of that, they get an error saying that they must be employees to view the content of the directories. I do not want them to belong to the human resources / employee group. I just want them to belong to the knowledge group. I Hope you can help me.
Thank you in advance.
答案 0 :(得分:0)
您可以为此创建访问角色。 启用开发人员模式,然后 - 转到设置>用户>基团。
选择要授予其访问权限的组。
转到“访问权限”选项卡,然后在其中添加项目。
选择 - 对象 - 'ir.attachment' - 读取,写入,创建,取消链接(全部或根据您的要求检查)和 - - 为规则命名(任何名称)。
并保存。
属于该特定组的用户可以访问文档管理模块。
由于 Shikhar S
答案 1 :(得分:0)
Odoo中的模型ir.attachment
具有一些访问权限的特殊逻辑。用户不仅需要访问该模型的权限,还需要访问附件所属模型的访问权限。
一个简单的例子:您的发票上附有发票pdf作为附件。如果您没有发票的删除权限(可能只有读取权限),则也不允许删除该发票的附件。
因此,解决问题的唯一方法是覆盖that logic。
答案 2 :(得分:0)
如果您不希望用户属于Employee组,请将用户创建为Portal用户。
(让用户自动访问标准应用程序会使用户属于Employee组,因为他们大多数都继承了Employee组)登记/>
现在,您有两个选择:
1)修改Portal组以包含Knowledge菜单&相关对象访问
2)使用所需菜单创建继承Portal组的新组。相关对象访问。
使用此组访问权限分配新用户以允许访问文档。