Skip to Content
Menú
This question has been flagged
1 Respondre
5498 Vistes

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
Descartar

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
Descartar
Autor

very helpful thx very much it's working

Related Posts Respostes Vistes Activitat
2
de gen. 20
15290
16
d’ag. 19
10237
5
de juny 18
10910
0
de set. 17
2532
0
de febr. 17
3053