Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5348 Weergaven

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
Annuleer

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Beste antwoord

Hello Kader,

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

record_id = Database id then it will work

Avatar
Annuleer
Auteur

very helpful thx very much it's working

Gerelateerde posts Antwoorden Weergaven Activiteit
2
jan. 20
15135
16
aug. 19
10100
5
jun. 18
10758
0
sep. 17
2441
0
feb. 17
2964