Odoo 9.0.1 警告 - 访问错误

Odoo 9.0.1 Warning - Access Error

我已经安装了 Odoo 9.0.1,它运行良好,然后我安装了项目管理应用程序。

然后我添加了项目用户如下图:

之后我创建了一个问题并将其分配给 Mark(项目用户),但是 Mark 从他的帐户无法访问项目问题或任务,它只显示没有所有项目菜单项的仪表板:

那么如何更改安全权限以便项目用户而不是经理可以查看项目模块中的特定内容。

您想授予用户执行特定任务的权限... 所以你必须创建 1 个组假设名称是 group1 并创建 1 个用户假设名称是 user1 您可以通过两种方式创建组和用户,第一种是通过编码,第二种方式是前端。 创建一个名为Security的文件夹,在该文件夹下创建一个xml文件名,如security.xml.

create xml file for the security.

<openerp>
    <!-- Create user -->    
    <data>
        <record id="user1" model="res.users">
            <field name="name">user1</field>
            <field name="login">user1</field>
            <field name="password">user1</field>
        </record>
    </data>

    <!-- Create Group -->
    <data>
        <record id=”group_1“ model="res.groups”>
            <field name="name">group1</field>
        </record>
    </data>
</openerp>
now you have to assign your user1 into the group1 through front end side.

您还可以通过为该用户编码将此用户分配到 group1 中... 在组代码下。 现在您必须为特定任务或模块授予权限,您还可以通过 csv 文件在前端授予权限。 创建 CSV 文件....

Name must be ir.model.access.csv for the csv file.
this file also put under the security folder.

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_user1,task_user1,model_contact_contact,contact_advance.group_contact_all,1,1,0,0

你也可以在群编辑模式下通过前端给权限。

now you can login as user1 and you can access your projects.

希望这个回答对您有所帮助。