i use current date time in python (time.strftime) without problem but i can't in XML file when i try to insert colors into tree view !
<tree string="Mission" colors="blue:datetime_field > time.strftime('%d-%m-%Y %H:%M:%S')">
i test datetime.datetime.now() and DateTime.today() but no result !
Use Date() for Kanban.
For tree comparison, use current_date. In any domain,can use datetime.datetime.now().strftime('%Y-%m-%d').
See for the Tasks as an example:
<tree fonts="bold:message_unread==True" colors="red:date_deadline and (date_deadline<current_date)" string="Tasks">
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: 8/5/15, 2:02 PM|
|Seen: 2365 times|
|Last updated: 7/9/16, 11:11 AM|