Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how filter the products ?

By
aneesh ATEES Infomedia Pvt Ltd
on 9/11/15, 5:32 AM 488 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   

2

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.

1
Jo
On 9/11/15, 5:43 AM

Aneesh try this

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

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

aneesh ATEES Infomedia Pvt Ltd
on 9/11/15, 7:48 AM
1
Hengky Zhang
On 9/11/15, 5:44 AM

you can check the example in sales

in that example we just can see our sales order

0
Mayank Gosai
On 11/16/15, 1:26 AM

Hello Aneesh,

You can use the following code:

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

Hope it helps you !

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/11/15, 5:32 AM
Seen: 488 times
Last updated: 11/16/15, 1:26 AM