Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
363 Vizualizări
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
Imagine profil
Abandonează
Cel mai bun răspuns

Hi,


Try with the following code.

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


Hope it helps

Imagine profil
Abandonează
Cel mai bun răspuns
readonly="invoice_count and state == 'sale'"
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
ian. 25
735
3
aug. 24
15801
1
nov. 19
3706
1
aug. 18
4997
1
mar. 15
4876