Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5434 Visualizzazioni

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
Abbandona

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Risposta migliore

Hello Kader,

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

record_id = Database id then it will work

Avatar
Abbandona
Autore

very helpful thx very much it's working

Post correlati Risposte Visualizzazioni Attività
2
gen 20
15220
16
ago 19
10182
5
giu 18
10841
0
set 17
2479
0
feb 17
3001