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 odoo18This question has been flagged
2
Replies
3653
Views
Hi,
Try with the following code.
<field name="your_field_name" readonly="invoice_count != 0 and state == sale)"/>
Hope it helps
readonly="invoice_count and state == 'sale'"
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
0
Jan 25
|
2050 | ||
|
|
3
Aug 24
|
17637 | ||
|
|
1
Nov 19
|
5121 | ||
|
|
1
Aug 18
|
6300 | ||
|
|
1
Mar 15
|
6344 |