Skip to Content
Menú
This question has been flagged
2 Respostes
326 Vistes
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
Best Answer

Hi,


Try with the following code.

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


Hope it helps

Avatar
Descartar
Best Answer
readonly="invoice_count and state == 'sale'"
Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de gen. 25
692
3
d’ag. 24
15782
1
de nov. 19
3688
1
d’ag. 18
4978
1
de març 15
4853