Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4739 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jan. 24
2559
2
jun. 22
4494
2
jun. 18
6057
2
nov. 16
13663
2
feb. 24
12530