Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5429 Widoki

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
Awatar
Odrzuć

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Najlepsza odpowiedź

Hello Kader,

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

record_id = Database id then it will work

Awatar
Odrzuć
Autor

very helpful thx very much it's working

Powiązane posty Odpowiedzi Widoki Czynność
2
sty 20
15217
16
sie 19
10179
5
cze 18
10838
0
wrz 17
2479
0
lut 17
2999