Skip to Content
मेन्यू
This question has been flagged
1 Reply
2653 Views

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
Discard
Best Answer

HI you need to change the domain like this

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

Avatar
Discard
Author

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