Can anyone tell me how I can calculate on the fly the number of days a task is overdue in a QWeb report ?
I was hoping to be able to use a simple calculation and then format it to days, but even the calculation doesn't work yet.
<TD style="border-top: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;" t-if="task.date_deadline != false"><span t-esc="context_today()-task.date_deadline"/></TD>
Thanks for your help.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/3/16, 4:58 PM|
|Seen: 266 times|
|Last updated: 1/4/16, 1:48 AM|