Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4713 Visualizzazioni

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.

    

 

Avatar
Abbandona
Risposta migliore

Try to add new rule

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 15
4867
1
ago 19
4801
2
mar 15
5279
0
mar 15
3599
1
ago 25
3693