[FIX] format_value: correctly compose if block, we are doing python here...

bzr revid: mat@openerp.com-20140121142625-fy8zkafcvb9wwz88
This commit is contained in:
Martin Trigaux
2014-01-21 15:26:25 +01:00
parent 36048a8442
commit 3c3ab07e2f
+1 -3
View File
@@ -191,9 +191,7 @@ instance.web.format_value = function (value, descriptor, value_if_empty) {
+ ' ' + normalize_format(l10n.time_format));
case 'date':
if (typeof(value) == "string")
// in case value is a datetime, strip to avoid time manipulation
value = value.substring(0,10);
value = instance.web.str_to_date(value);
value = instance.web.str_to_date(value.substring(0,10));
return value.toString(normalize_format(l10n.date_format));
case 'time':
if (typeof(value) == "string")