Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5294 Prikazi

i want to display a customized field "wilaya" depending the value of another field "country_id" in the view base.view_partner_form

my code is : 

                <field name="wilaya" attrs="{'invisible': [('country_id','!=', 'Algeria')] }"/>

but the condition doesn't work. need help please
Avatar
Opusti

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Best Answer

Hello Kader,

<field name="wilaya" attrs="{'invisible': [('country_id','!=',record_id)] }"/>

record_id = Database id then it will work

Avatar
Opusti
Avtor

very helpful thx very much it's working

Related Posts Odgovori Prikazi Aktivnost
2
jan. 20
15042
16
avg. 19
10049
5
jun. 18
10698
0
sep. 17
2393
0
feb. 17
2903