Skip to Content
Menu
This question has been flagged
4 Replies
5130 Views

I Need to check whether current datetime is greater than or lesser than created datetime if it is greater the tree view color should changed as red or if lesser it should be blue?

Avatar
Discard
Best Answer

Try this module https://www.odoo.com/apps/modules/9.0/odoo_datetime/

Avatar
Discard
Best Answer

you can use the app Magic Color note

https://www.odoo.com/apps/modules/9.0/magic_note/

hope this will full fill your requirement 


Avatar
Discard
Best Answer

In .xml side <, >, <=, >= is not supported. So we need to use &lt;, &gt;, &lt;= and &gt;=

This will work, try this,

<tree colors="blue:current_date &lt; created_date;" > 
    <field name="test" />   
</tree>
Avatar
Discard
Author

Ya it is correct , but i need to check condition based on datetime field .