Skip to Content
Menu
This question has been flagged
1 Atsakyti
5438 Rodiniai

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
Portretas
Atmesti

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

Portretas
Atmesti
Autorius

very helpful thx very much it's working

Related Posts Replies Rodiniai Veikla
2
saus. 20
15221
16
rugp. 19
10183
5
birž. 18
10842
0
rugs. 17
2479
0
vas. 17
3001