Showing posts with label How to set security in OpenERP. Show all posts
Showing posts with label How to set security in OpenERP. Show all posts

Thursday 3 May 2012

OpenERP Security issue

OpenERP Security its too cool..
Security is the main issue in any organization or firm because without it, its became handicapped . 
So, its needed in OpenERP to define security means access rules as well as access rights that will restrict the user to use particular.

Here i described one security file that will describe the groups.

I hope its useful to you all. 
Security and implies_ids

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">
    <record id="base.group_library_user" model="res.groups">
        <field name="name">Library User</field>
    </record>
    
    <record id="base.group_library_librarian" model="res.groups">
        <field name="name">Librarian</field>
    </record>
    
    <record id="base.group_lib_resuser_employee" model="res.groups">
        <field name="name">Employees</field>
        <field name="category_id" ref="base.module_category_human_resources"/>
        <field name="implied_ids" eval="[(4, ref('base.group_library_user'))]"/>
    </record>
    
    </data>
</openerp>

...Enjoy...