[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:
parent
38582c8410
commit
87ea306997
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue