[IMP] Modified formatting of m2o to be consistent with the m2o in form view

bzr revid: nicolas.vanhoren@openerp.com-20121015125123-cyosgswtdxgtcom7
This commit is contained in:
niv-openerp 2012-10-15 14:51:23 +02:00
parent 38582c8410
commit 87ea306997
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];
return value[1].split("\n")[0];
case 'one2many':
case 'many2many':
if (typeof value === 'string') {