Odoo Help

Welcome!

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.

0

How to give edit rights to own records for a user in openerp 7?

By
vivek
on 5/24/13, 10:17 AM 817 views

Hi,

I would like to implement the following scenario.

  • User must be able to see all the records and should be able to edit only his own records

Is it possible to do it in openerp 7 and if possible how to do it?

-1

Vasiliy Birukov

--Vasiliy Birukov--
3446
| 6 6 8
Russian Federation
--Vasiliy Birukov--

Help develop and implement any project on base Odoo.

Vasiliy Birukov
On 5/27/13, 3:27 AM

You can define Access Rights to your Object as readonly (disable write and delete access). And define Record Rules for your Object with full access, but with domain:

['|',('user_id','=',False),('user_id','=',user.id)]

So, to all user will apply Access Rights and if user in domain then also apply Record Rules.

What is the meaning of this filter code? I do not understand.

['|',('user_id','=',False),('user_id','=',user.id)]

jini
on 9/24/13, 3:56 AM

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

0 follower(s)

Stats

Asked: 5/24/13, 10:17 AM
Seen: 817 times
Last updated: 3/16/15, 8:10 AM