Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5289 Tampilan

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
Buang

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Jawaban Terbai

Hello Kader,

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

record_id = Database id then it will work

Avatar
Buang
Penulis

very helpful thx very much it's working

Post Terkait Replies Tampilan Aktivitas
2
Jan 20
15037
16
Agu 19
10047
5
Jun 18
10696
0
Sep 17
2392
0
Feb 17
2899