I am still learning Openerp and please bear it if I asked something very simple. My issue is that I need to get validate two fields which represent start_time and end_time.
both fields are in char
'start_time': fields.char('Start Time'),
'end_time': fields.char('End Time'),
What I need to do is , once the user input this start_time and end_time I need to check if that input is in 24hrs and in hh:mm pattern.
please be kind enough to help me with this
You should add an on_change function to your python code where you check if start_time and end_time is in the correct format. And in your xml you'll have to tell that the method should be called when the field changes.
XML
Python
the result should be something like
This code should work for this issue
In on_change method, you can change field value