Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5424 Visualizações

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
Cancelar

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

Melhor resposta

Hello Kader,

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

record_id = Database id then it will work

Avatar
Cancelar
Autor

very helpful thx very much it's working

Publicações relacionadas Respostas Visualizações Atividade
2
jan. 20
15217
16
ago. 19
10178
5
jun. 18
10836
0
set. 17
2479
0
fev. 17
2998