[FIX] Small problem with formatting

bzr revid: nicolas.vanhoren@openerp.com-20121015135607-j2c3dedpxaiuivd3
This commit is contained in:
niv-openerp 2012-10-15 15:56:07 +02:00
parent 04353719e9
commit a2399bc651
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ instance.web.format_value = function (value, descriptor, value_if_empty) {
Math.round((value % 1) * 60));
case 'many2one':
// name_get value format
return value[1].split("\n")[0];
return value[1] ? value[1].split("\n")[0] : value[1];
case 'one2many':
case 'many2many':
if (typeof value === 'string') {