Odoo Help


This community 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.


Permission for a group to edit a single field only its possible?

on 1/20/15, 7:16 AM 736 views

Can we give permission for a group for editing only a single field in model



| 5 3 6
Jakarta, Indonesia
On 1/20/15, 7:27 AM

@Tangaraj, if you mean that you one that a group can edit only one field of a model and cannot edit the other fields (note that the group still need to be able to edit write_uid and write_date), AFAIK, there is no straight-forward way.  One possible solution is to use a function field as what I've described in the first option in my answer here.  However, since your case is actually quite the opposite, you need to add the readonly attribute of ALL fields EXCEPT for the one that you want the group to edit.

Another option is to create a different form with all the fields set to readonly aside from one that the group can edit, then use this form in a new act_window and menu that this group can accessed.  The other menu that accesses the same model has to be "protected" from this group as well by also assigning groups to those menu.  Now, the next step is administrative, i.e. users that belong to one group cannot belong to the other.

@ivan did you mean.. we have to create a separate view for that group?

Gopalakrishnan Kasilingam
on 1/20/15, 7:40 AM


on 1/20/15, 8:03 AM

Sorry, let me qualify my answer. In essence, yes. But a view cannot be assigned to groups, nor act_window, only Menu Items can. So, you need to create the whole set.

on 1/20/15, 8:03 AM

Med Said BARA

--Med Said BARA--
| 5 5 7
--Med Said BARA--
Med Said BARA
On 1/20/15, 9:23 AM

In OpenERP V7.0, you can use "Field access rights" to protect your fields from being read or edited.

related question to read: https://www.odoo.com/forum/help-1/question/field-level-read-access-rights-missing-in-odoo-8-0-67530

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 1/20/15, 7:16 AM
Seen: 736 times
Last updated: 8/3/15, 7:59 AM