[FIX] format_value: correctly compose if block, we are doing python here...
bzr revid: mat@openerp.com-20140121142625-fy8zkafcvb9wwz88
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user