Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
5287 Ansichten

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
Verwerfen

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Beste Antwort

Hello Kader,

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

record_id = Database id then it will work

Avatar
Verwerfen
Autor

very helpful thx very much it's working

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Jan. 20
15034
16
Aug. 19
10043
5
Juni 18
10688
0
Sept. 17
2389
0
Feb. 17
2894