Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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">
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/5/15, 2:02 PM|
|Seen: 3655 times|
|Last updated: 7/9/16, 11:11 AM|