Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4745 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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)

 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
ian. 24
2563
2
iun. 22
4499
2
iun. 18
6059
2
nov. 16
13669
2
feb. 24
12533