Does anyone know about context_today? I have seen it on sales module. sale.py file.
record.remaining_validity_days = (record.validity_date - fields.Date. context_today (record)). days + 1
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Does anyone know about context_today? I have seen it on sales module. sale.py file.
record.remaining_validity_days = (record.validity_date - fields.Date. context_today (record)). days + 1
context_today returns the current date as seen in the client's timezone in a format fit for date fields.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Nov 24
|
150 | ||
|
1
Apr 23
|
1471 | ||
|
7
Feb 23
|
7488 | ||
|
0
Sep 22
|
950 | ||
|
1
Jul 22
|
473 |