Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
469 Visninger
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
Kassér
Bedste svar

Hi,


Try with the following code.

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


Hope it helps

Avatar
Kassér
Bedste svar
readonly="invoice_count and state == 'sale'"
Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
jan. 25
776
3
aug. 24
15858
1
nov. 19
3768
1
aug. 18
5055
1
mar. 15
4944