Skip to Content
मेन्यू
This question has been flagged
1 Reply
5677 Views

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
Discard

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
Discard
Author

very helpful thx very much it's working

Related Posts Replies Views Activity
2
जन॰ 20
15521
16
अग॰ 19
10513
5
जून 18
11117
0
सित॰ 17
2716
0
फ़र॰ 17
3267