Odoo Help


How to show field ?

on 12/28/14, 1:42 AM 722 views


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



On 12/29/14, 3:30 AM

HI you need to change the domain like this

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

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

on 1/2/15, 4:26 AM

user '|' operator as mentioned above and check once

on 1/2/15, 8:37 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/28/14, 1:42 AM
Seen: 722 times
Last updated: 3/16/15, 8:10 AM