Odoo Help


how to apply field level Access rights for user ?

on 6/1/13, 9:41 AM 5,476 views

I need to apply field level access right for a user in point of sale module. The main problem I face is the entire stuff is in Javascript and I need to manage user access inside the POS.


As of OpenERP 7.0, you can create field level access rights. You can achieve this by adding the groups attribute in your field definition in the module:

_columns = { 'secret_key': fields.char('Secret Key', groups="base.group_erp_manager,base.group_system") }

In your case, you will have to inherit the target class in the point_of_sale module

However, I am facing another issue that is mentioned in this link http://help.openerp.com/question/9937/how-to-display-a-view-with-one-field-removed-for-certain-groups/

Osoul for Technology and Software Development
on 6/5/13, 8:20 PM

ClueLogics Technologies Pvt. Ltd.

--ClueLogics Technologies Pvt. Ltd.--
| 6 5 8
Delhi NCR, India
--ClueLogics Technologies Pvt. Ltd.--

 ClueLogics Technologies Pvt Ltd is a Software product and services provider. We are positioned to deliver robust, rapid and reliable Information Technology solutions that work. What we succeed upon is Technology and Technical Expertise. The industry review of ClueLogics has been commendable for the past years as most of its business comes from repeat orders by highly satisfied clients.

ClueLogics Technologies Pvt. Ltd.
On 6/6/13, 9:21 AM

You can achieve this by adding the groups attribute in your field definition in the module: create your special group in your module

    <record id ="mygrou_id" model="res.groups">
       <field name="name">My special group</field>

in view file add this group in your particular field

    <field name"myfield" groups="my_module.mygrou_id"/>

plz remember to add user for this group


This will only hide the field in that specific view. Meaning the field can still be viewed using XML-RPC or customized views. It only has cosmetic effects and not security.

Osoul for Technology and Software Development
on 6/6/13, 5:55 PM

This will hide field for other group how can I make that field read only for other group and write permission for other group

on 7/16/13, 7:40 AM
Dharmesh Rathod
On 6/1/13, 10:48 AM


OpenERP is providing access rights on object level. You can create groups and apply "groups" attribute in XML.

Email : info@acespritech.com
Skype : acespritech
Blog : acespritechblog.wordpress.com

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 6/1/13, 9:41 AM
Seen: 5476 times
Last updated: 8/29/15, 9:46 AM