Skip to Content
Menu
This question has been flagged
1 Odpoveď
5166 Zobrazenia

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
Zrušiť
Best Answer

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
jan 24
3056
2
jún 22
5000
2
jún 18
6472
2
nov 16
14331
2
feb 24
13005