Skip to Content
Menu
This question has been flagged
1 Reply
4424 Views

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
Discard
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
Discard
Author

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)]

Author

thanks, its working for create_uid.

Author

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.

Author

Thanks for your support