This question has been flagged
4788 Views

I developed one small module in OpenERP 7 i have to try access permission to that form. i want two rights. User and the manager. so i created this file in the security folder like this. <openerp> <data noupdate="0">

 <record model="ir.module.category" id="module_category_quality_management">
        <field name="name">Qualitysss</field>
        <field name="description">Quality Management</field>
        <field name="sequence">19</field>
    </record>

<record id="group_quality_user" model="res.groups">
    <field name="name">User</field>
    <field name="category_id" ref="module_category_quality_management"/>
    <field name="model_id" ref="model_quality_control"/>
    <field name="implied_ids" eval="[(4, ref('module_category_quality_management'))]"/>

</record>
<record id="group_quality_manager" model="res.groups">
    <field name="name">Manager</field>
    <field name="model_id" ref="model_quality_control"/>
    <field name="category_id" ref="module_category_quality_management"/>
    <field name="implied_ids" eval="[(4, ref('module_category_quality_management'))]"/>

</record>

</data> </openerp>

and in the CSV file put like this. id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink access_quality_control quality.control model_quality_control group_quality_manager 1 1 1 1, i get this error Exception: Module loading my_module failed: file my_module/security/ir.model.access.csv could not be processed: Line 1 : id name model_id how to solve this.

Avatar
Discard