python - Restrict OpenERP rules for employees -


Can I add a record rule that restricts the facility of writing for employees so that they only modify its information Can you do that? I do this test but it is not working:

In the Access Control List, I add the facility of writing on the employee object.

RULE1: [('user_id', '=', user.id]] - read and write * / RULE2 a new rule for employee rule Add (['user_id', '! =', User.id]] - (, '=' text '>

[(' id ',' = ', User.id) ] and select READ, write and then the login user can only view the record.

You must add this rule to hr.employee model .


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -