Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4984 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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)

 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 24
2884
2
cze 22
4840
2
cze 18
6309
2
lis 16
14117
2
lut 24
12859