Skip to Content
Menu
This question has been flagged
1 Reply
7029 Views

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
Avatar
Discard
Best Answer

context_today returns the current date as seen in the client's timezone in a format fit for date fields.

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
150
1
Apr 23
1471
7
Feb 23
7488
0
Sep 22
950
1
Jul 22
473