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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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)
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
sty 24
|
2566 | ||
|
2
cze 22
|
4499 | ||
How can I use date format only without time?
Rozwiązane
|
|
2
cze 18
|
6059 | |
|
2
lis 16
|
13672 | ||
|
2
lut 24
|
12533 |