Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
11225 Ansichten

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
Verwerfen
Beste Antwort

Hello,

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

Avatar
Verwerfen
Autor

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

Autor

Thanks for your reply

Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Juli 25
4503
0
Mai 25
960
2
März 24
2203
0
Jan. 23
1791
1
Nov. 22
3248