[FIX] Small problem with formatting
bzr revid: nicolas.vanhoren@openerp.com-20121015135607-j2c3dedpxaiuivd3
This commit is contained in:
parent
04353719e9
commit
a2399bc651
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue