İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
1314 Görünümler
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
Vazgeç
En İyi Yanıt

Hi,


Try with the following code.

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


Hope it helps

Avatar
Vazgeç
En İyi Yanıt
readonly="invoice_count and state == 'sale'"
Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Oca 25
1005
3
Ağu 24
16325
1
Kas 19
4006
1
Ağu 18
5280
1
Mar 15
5251