[IMP] Format float time value on the fly

bzr revid: fme@openerp.com-20110523081555-w94od66zxdo6036w
This commit is contained in:
Fabien Meghazi 2011-05-23 10:15:55 +02:00
parent 862982f7bb
commit 24f6ff1444
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ openerp.base.form.FieldFloatTime = openerp.base.form.FieldChar.extend({
this._super.apply(this, arguments);
if (!this.invalid) {
var time = this.value.split(':');
this.value = parseInt(time[0], 10) + parseInt(time[1], 10) / 60;
this.set_value(parseInt(time[0], 10) + parseInt(time[1], 10) / 60);
}
}
}