Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
706 Visualizações
attrs="{'readonly': [('invoice_count','!=',0),('state','=','sale')]}" This is odoo 16 xml readonly attribute part, Can someone help me to convert this readonly condituion to odoo18
Avatar
Cancelar
Melhor resposta

Hi,


Try with the following code.

<field name="your_field_name" readonly="invoice_count != 0 and state == sale)"/>


Hope it helps

Avatar
Cancelar
Melhor resposta
readonly="invoice_count and state == 'sale'"
Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
jan. 25
847
3
ago. 24
16027
1
nov. 19
3839
1
ago. 18
5147
1
mar. 15
5047