Odoo Help

0

How to dynamically set the domain of custom filter of top search bar using python?

By
Hammad hussain qureshi
on 3/16/15, 4:20 AM 699 views

I want to set different domains for my custom filter depending on the login customer. I have successfully created a custom filter with static domain as: 

<filter help="My Partners" name="my_partners" icon="terp-personal+" domain="[('user_id','=',uid)]"/>

But now I want to dynamically assign the domain to this custom filter using python. Thanks in advance

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/16/15, 4:20 AM
Seen: 699 times
Last updated: 3/16/15, 8:10 AM