I have users called Admin and Users.
I given all access rights for admin.
As i know we can give permissions for a table but not for particular fields.
Is it possible to give permissions/access rights for fields?
For Example: In table 'x' there are 2 fields called name and ph.num, we can create a group for table 'x' for Admin and give rights to edit name and ph.num. And i will create another group for same table 'x' for User that he can edit only ph.num. If i login as User he can change both name and ph.num, So my question is to edit only one ph.num field. How can we do this?
You can't set access rights for particular fields. It's not available by default in Odoo + it is not possible also. ( Unless in V6.1 there was a community module available but I am sure you are not using V6.1 )
However you can use attrs and group attributes for particular field to make it invisible/readonly in certain conditions. But It will surely not possible In Odoo that x user can edit some field and y user can't from front end view or configuration.
However from object/model level you can achieve that.
There are 2 attributes(read and write.) you can apply inside field definition. ( it was available in V7, i am not sure on V8 )
You can specify groups by comma separated in each attribute. write will allow you to edit but when you save field it will not let you save the latest data if user is not available in particular group which is specified in write attribute.
Also Check following links, it may help you.
Hope this helps,
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 9/23/15, 1:34 AM|
|Seen: 641 times|
|Last updated: 9/23/15, 2:31 AM|