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

domain in hardcoded selection field

By
Maniganda
on 6/19/13, 9:27 AM 2,533 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

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

0 follower(s)

Stats

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