Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
324 Vistas
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
Descartar
Mejor respuesta

Hi,


Try with the following code.

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


Hope it helps

Avatar
Descartar
Mejor respuesta
readonly="invoice_count and state == 'sale'"
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 25
692
3
ago 24
15779
1
nov 19
3687
1
ago 18
4978
1
mar 15
4853