Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
393 Prikazi
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
Opusti
Best Answer

Hi,


Try with the following code.

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


Hope it helps

Avatar
Opusti
Best Answer
readonly="invoice_count and state == 'sale'"
Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
jan. 25
751
3
avg. 24
15826
1
nov. 19
3740
1
avg. 18
5020
1
mar. 15
4917