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
4888 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
2752
2
cze 22
4706
2
cze 18
6202
2
lis 16
13912
2
lut 24
12722