Skip to Content
मेन्यू
This question has been flagged
2 Replies
330 Views
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
Discard
Best Answer

Hi,


Try with the following code.

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


Hope it helps

Avatar
Discard
Best Answer
readonly="invoice_count and state == 'sale'"
Avatar
Discard
Related Posts Replies Views Activity
0
जन॰ 25
692
3
अग॰ 24
15783
1
नव॰ 19
3688
1
अग॰ 18
4979
1
मार्च 15
4854