I have two date time fields
'`date_from`': fields.datetime('Submission Date').
'`date_to`': fields.datetime('Return Date').
and I want to capture difference between two date time fields in "H":"m" format
in 'total_hours': fields.function(_calculate_total_hours,string="Total Hours", type="float"),
in submision stage I need to use only submission date that means total_hours are zero
in second stage will add return date and capture the total_hours and minutes.
how can I do this please help me.
Its working but getting only hours I need minutes also