Ensure Float.get_client returns a string

otherwise 0 could be evaluated as False.
This commit is contained in:
C?dric Krier 2015-10-06 15:33:17 +02:00
parent b08b3bf987
commit aca576b860
2 changed files with 2 additions and 2 deletions

View file

@ -1544,7 +1544,7 @@
if (digits) {
return (value * factor).toFixed(digits[1]);
} else {
return (value * factor);
return '' + (value * factor);
}
} else {
return '';

View file

@ -2431,7 +2431,7 @@
if (record) {
var value = record.model.fields[this.field_name]
.get_client(record, this.factor);
this.input.val(value || '');
this.input.val(value);
} else {
this.input.val('');
}