Skip to Content
Menu
This question has been flagged
1 Atsakyti
11217 Rodiniai

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

Portretas
Atmesti
Best Answer

Hello,

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

Portretas
Atmesti
Autorius

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

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

Autorius

Thanks for your reply

Related Posts Replies Rodiniai Veikla
3
liep. 25
4475
0
geg. 25
950
2
kov. 24
2189
0
saus. 23
1782
1
lapkr. 22
3238