Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4734 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
gen 24
2552
2
giu 22
4481
2
giu 18
6041
2
nov 16
13644
2
feb 24
12526