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?
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
This question has been flagged
Try this module https://www.odoo.com/apps/modules/9.0/odoo_datetime/
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
In .xml side <, >, <=, >=
is not supported. So we need to use <, >, <= and >=
This will work, try this,
<tree colors="blue:current_date < created_date;" >
<field name="test" />
</tree>
Ya it is correct , but i need to check condition based on datetime field .
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up