Skip to Content
मेन्यू
This question has been flagged
1 Reply
4801 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
2
जन॰ 24
2618
2
जून 22
4562
2
जून 18
6102
2
नव॰ 16
13720
2
फ़र॰ 24
12611