Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
5427 Visninger

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
Kassér

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Bedste svar

Hello Kader,

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

record_id = Database id then it will work

Avatar
Kassér
Forfatter

very helpful thx very much it's working

Related Posts Besvarelser Visninger Aktivitet
2
jan. 20
15217
16
aug. 19
10179
5
jun. 18
10837
0
sep. 17
2479
0
feb. 17
2999