Skip to Content
Menu
This question has been flagged
1 Odpoveď
5431 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
15220
16
aug 19
10182
5
jún 18
10840
0
sep 17
2479
0
feb 17
3000