Skip to Content
Menu
This question has been flagged
2 Replies
705 Rodiniai
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
Portretas
Atmesti
Best Answer

Hi,


Try with the following code.

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


Hope it helps

Portretas
Atmesti
Best Answer
readonly="invoice_count and state == 'sale'"
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
saus. 25
847
3
rugp. 24
16027
1
lapkr. 19
3839
1
rugp. 18
5147
1
kov. 15
5047