Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
11208 Tampilan

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
Buang
Jawaban Terbai

Hello,

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

Avatar
Buang
Penulis

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

Penulis

Thanks for your reply

Post Terkait Replies Tampilan Aktivitas
3
Jul 25
4461
0
Mei 25
948
2
Mar 24
2189
0
Jan 23
1776
1
Nov 22
3234