Skip to Content
Menu
This question has been flagged
1 Atsakyti
4872 Rodiniai

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

Portretas
Atmesti
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)

 

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
saus. 24
2738
2
birž. 22
4690
2
birž. 18
6190
2
lapkr. 16
13890
2
vas. 24
12708