Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
11187 Weergaven

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

Avatar
Annuleer
Beste antwoord

Hello,

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

Avatar
Annuleer
Auteur

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

Auteur

Thanks for your reply

Gerelateerde posts Antwoorden Weergaven Activiteit
3
jul. 25
4450
0
mei 25
943
2
mrt. 24
2187
0
jan. 23
1772
1
nov. 22
3233