Odoo Help

0

domain in hardcoded selection field

By
Maniganda
on 6/19/13, 9:27 AM 3,074 views

I need to have domian filter on selection field for example i have DATA =[('1','one'),('2','two')] and so on.... i need to display the values excluding 1 in the form view

0
Evert Dausy
On 6/19/13, 11:44 AM

Hello,

I'm not sure but I think you can use something like this -> domain=[('selection_field','=','1')].

thanks for your reply, i have tried this but this is not working

Maniganda
on 6/19/13, 12:08 PM

I just tried this and this can't work. A selection doesn't allow a domain.

You can fix this by making a many2one field and use the selection widget. Where you can define the 'name' and 'value'. Then it's easy to use the domain

Evert Dausy
on 6/19/13, 12:16 PM

Thanks for your reply

Maniganda
on 6/19/13, 12:19 PM

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

0 follower(s)

Stats

Asked: 6/19/13, 9:27 AM
Seen: 3074 times
Last updated: 3/16/15, 8:10 AM