Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5412 Zobrazení

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
Zrušit

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Nejlepší odpověď

Hello Kader,

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

record_id = Database id then it will work

Avatar
Zrušit
Autor

very helpful thx very much it's working

Related Posts Odpovědi Zobrazení Aktivita
2
led 20
15209
16
srp 19
10170
5
čvn 18
10830
0
zář 17
2470
0
úno 17
2994