Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5420 Vues

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
Ignorer

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Meilleure réponse

Hello Kader,

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

record_id = Database id then it will work

Avatar
Ignorer
Auteur

very helpful thx very much it's working

Publications associées Réponses Vues Activité
2
janv. 20
15213
16
août 19
10177
5
juin 18
10834
0
sept. 17
2474
0
févr. 17
2995