This question has been flagged
5 Replies
3652 Views

hi i want to show  the products list  only who added it..means i have set the portal user to add product,and  portal user can see only the products added by himself..other user added product can not be seen. i have write rule for it in the portal group "[('create_uid', '=' , 'users.id')]" but not working it..pls help me fast   

Avatar
Discard
Best Answer

Hi, your logic was nearly right just remove the single quote from users.id i.e. [('create_uid','=',user.id)]. If it still gives access to all then you can try creating many to one field of res.users and set the default value as current user then go with the record rule. I hope this will help you.

Avatar
Discard
Best Answer

Aneesh try this

[('create_uid','=','uid')]

Avatar
Discard
Author

Thanks for ur comment Jothimani but issue is still not solved ...filtering not working.list all the products

Best Answer

you can check the example in sales

in that example we just can see our sales order

Avatar
Discard
Best Answer

Hello Aneesh,

You can use the following code:

[('create_uid','=',uid)]

Hope it helps you !

Avatar
Discard