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 have a datetime field named field_date1 in which I am selecting the date. I am having another field in which I should display a datetime which is 5 hours more than the seleccted time in field_date1. I defined an onchange function and in that I wrote the following line for doing the calculation.
date_field2 = date_field1 + timedelta(0,0,0,0,0,5,0)
As timedleta takes the parameters: timedelta([days[, seconds[, microseconds[, milliseconds[, minutes[, hours[, weeks]]]]]]])
But I am facing an error with that. Can anyone help me with a solution.
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: 1/27/15, 1:38 AM|
|Seen: 1080 times|
|Last updated: 3/16/15, 8:10 AM|