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)
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
2
tammik. 24
|
2361 | ||
|
2
kesäk. 22
|
4310 | ||
|
2
kesäk. 18
|
5891 | ||
|
2
marrask. 16
|
13396 | ||
|
2
helmik. 24
|
12363 |