In openerp 7, Start Time columns created using float_time widget.
in py file,
start_time: fields.float('Start Time')
in xml file,
<field name="start_time" widget="float_time"/>
Using "Export" options Start Time output values generated it shows in float format.
Coversion float to float_time code:-
case 'float_time': var pattern = '%02d:%02d'; if (value < 0) { value = Math.abs(value); pattern = '-' + pattern; } var hour = Math.floor(value); var min = Math.round((value % 1) * 60); if (min == 60){ min = 0; hour = hour + 1; } return _.str.sprintf(pattern, hour, min);
In Export options export_data method how to override and apply the above float to float_time conversion formula for all widget="float_time" Field.?,,,,