İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4987 Görünümler

Hello Odoo community,

I was thinking if there is any example that let say if invoice date is less then current date lock particular fields or field?

Any example or ideas would be appreciated

Thank you

Avatar
Vazgeç
En İyi Yanıt

Have you tried using the readonly attribute with something like

('date','<=', ((context_today()-datetime.timedelta(days=10)).strftime('%Y-%m-%d')))  

(I haven't - just an idea)

 

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Oca 24
2884
2
Haz 22
4842
2
Haz 18
6309
2
Kas 16
14117
2
Şub 24
12860