Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2649 Vistas

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 ...

 

 

Avatar
Descartar
Mejor respuesta

HI you need to change the domain like this

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

Avatar
Descartar
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