Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2667 Widoki

Hai,

I want to ask, 

I have problems, 

I will show field 'ahm_code', when I choose principle, dealer, and finance company ...

so before i choose principle, dealer, and finance company , field 'ahm_code' is invisible ...

but, field type principle, dealer, and finance company is boolean (check box) ...

I try make code, like :

<field name="ahm_code" attrs="{'invisible': [('principle','dealer','finance_company','!=', True)]}"/>

and the result error ...

 

 

Awatar
Odrzuć
Najlepsza odpowiedź

HI you need to change the domain like this

attrs="{'invisible': ['|','|',('principle','!=', True),('dealer','!=', True),('finance_company','!=', True)]}"

Awatar
Odrzuć
Autor

Maniganda i use your code, but not work .. it's work , with i use code : attrs="{'invisible': [('principle','!=', True),('dealer','!=', True),('finance_company','!=', True)]}" but, thanks a lot for your answer

user '|' operator as mentioned above and check once