[FIX]Fixed the issue of statusbar which shows technical name in listview if one gives widget=statusbar in listview field.

bzr revid: msh@tinyerp.com-20120307101935-mw4vyjjra6e9uy1v
This commit is contained in:
msh-openerp 2012-03-07 15:49:35 +05:30
parent f6c3cd9bb7
commit 0df6b1bad7
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ openerp.web.format_value = function (value, descriptor, value_if_empty) {
if (typeof(value) == "string")
value = openerp.web.auto_str_to_date(value);
return value.toString(normalize_format(l10n.time_format));
case 'selection':
case 'selection': case 'statusbar':
// Each choice is [value, label]
if(_.isArray(value)) {
value = value[0]