Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4733 Zobrazení

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šit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
2
led 24
2552
2
čvn 22
4481
2
čvn 18
6041
2
lis 16
13644
2
úno 24
12526