Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4804 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
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