İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5416 Görünümler

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
Vazgeç

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

En İyi Yanıt

Hello Kader,

<field name="wilaya" attrs="{'invisible': [('country_id','!=',record_id)] }"/>

record_id = Database id then it will work

Avatar
Vazgeç
Üretici

very helpful thx very much it's working

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Oca 20
15212
16
Ağu 19
10174
5
Haz 18
10833
0
Eyl 17
2472
0
Şub 17
2994