Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4808 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

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

Tekijä

thanks, its working for create_uid.

Tekijä

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.

Tekijä

Thanks for your support