Skip to Content
Menu
This question has been flagged
2 Replies
369 Zobrazenia
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
Zrušiť
Best Answer

Hi,


Try with the following code.

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


Hope it helps

Avatar
Zrušiť
Best Answer
readonly="invoice_count and state == 'sale'"
Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
jan 25
739
3
aug 24
15805
1
nov 19
3706
1
aug 18
4998
1
mar 15
4884