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
5310 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
3256
2
cze 22
5220
2
cze 18
6663
2
lis 16
14535
2
lut 24
13190