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
4747 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
2566
2
cze 22
4499
2
cze 18
6059
2
lis 16
13672
2
lut 24
12533