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
5173 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
3057
2
cze 22
5001
2
cze 18
6473
2
lis 16
14331
2
lut 24
13010