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)
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Jan 24
|
2600 | ||
|
2
Jun 22
|
4545 | ||
How can I use date format only without time?
Diselesaikan
|
|
2
Jun 18
|
6092 | |
|
2
Nov 16
|
13709 | ||
how to find number of days between two dates?
Diselesaikan
|
|
2
Feb 24
|
12579 |