Skip to Content
Menu
This question has been flagged
1 Atsakyti
5990 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
15994
16
rugp. 19
11332
5
birž. 18
11475
0
rugs. 17
2929
0
vas. 17
3557