[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:
parent
f6c3cd9bb7
commit
0df6b1bad7
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue