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.

1

Hide edit button if current edited employee is not current user

By
sunil kumar
on 12/16/14, 7:24 AM 783 views

I am using openerp7.

I have a task that, restricting the user to update his employee details only and not other employees.

I worked on this with following steps,

1) Giving access control, write permissions to the user belonging group

2) Adding two record rules

But the problem is system is allowing the user to see edit button of other employees & make him to go there and change data. When user clicks on save. System says "Access Denied".

Encouraging user to that save button is embarrassing for th user. We need to hide edit button at view employee page itself.

Please help.

    

 

0
zuher83
On 12/17/14, 7:52 AM

Try to add new rule

[('employee_id.user_id', '=', user.id)]

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)

Stats

Asked: 12/16/14, 7:24 AM
Seen: 783 times
Last updated: 3/16/15, 8:10 AM