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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
Aneesh try this
[('create_uid','=','uid')]
Thanks for ur comment Jothimani but issue is still not solved ...filtering not working.list all the products
you can check the example in sales
in that example we just can see our sales order
Hello Aneesh,
You can use the following code:
[('create_uid','=',uid)]
Hope it helps you !
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up