Skip to Content
Menu
This question has been flagged
1 Odpoveď
5344 Zobrazenia

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
Zrušiť

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
Zrušiť
Autor

very helpful thx very much it's working

Related Posts Replies Zobrazenia Aktivita
2
jan 20
15108
16
aug 19
10088
5
jún 18
10749
0
sep 17
2436
0
feb 17
2955