Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5352 Vizualizări

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
Imagine profil
Abandonează

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Cel mai bun răspuns

Hello Kader,

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

record_id = Database id then it will work

Imagine profil
Abandonează
Autor

very helpful thx very much it's working

Related Posts Răspunsuri Vizualizări Activitate
2
ian. 20
15141
16
aug. 19
10105
5
iun. 18
10764
0
sept. 17
2441
0
feb. 17
2966