Skip to Content
Menú
This question has been flagged
1 Respondre
4796 Vistes

Hi all,

         I want to filter sale and purchase orders(quotations) based on user Id. I don't want to show all order or quotations created by same level of users. Entry level user can see only his (her) own details (leads, quotations, orders, etc.)

Avatar
Descartar
Best Answer

create a record rule something like:

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

see more about record rule :

https://www.odoo.com/documentation/8.0/reference/security.html


i hope this is helpful to you.

Avatar
Descartar
Autor

ya i did same but i'm getting error in purchase order

because, there is not 'user_id' field into the purchase order object.

you can try this may be work. [('create_uid', '=', user.id)]

Autor

thanks, its working for create_uid.

Autor

Manager want to see all purchase done by his subordinate. [(1 ,'=', 1)] its giving all the records but i want only his or her subordinates details.

i think there is no relation between manager and his or her subordinates. need to customize the module for your specification or purpose.

Autor

Thanks for your support