İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
333 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
694
3
Ağu 24
15786
1
Kas 19
3689
1
Ağu 18
4980
1
Mar 15
4855