Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4789 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
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