diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-10-15 14:51:23 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-10-15 14:51:23 +0200 |
| commit | 87ea306997c8b23b59cc5e35f71ec8e8d78e57a2 (patch) | |
| tree | 8bac31240b5a06dbb40789bbde2ca9fa4b2ae0a9 /addons | |
| parent | 38582c8410f77ef4b105f634fd543f630dd43613 (diff) | |
[IMP] Modified formatting of m2o to be consistent with the m2o in form view
bzr revid: nicolas.vanhoren@openerp.com-20121015125123-cyosgswtdxgtcom7
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/static/src/js/formats.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/formats.js b/addons/web/static/src/js/formats.js index 3e5e6fecd5e..dd1fd95c97e 100644 --- a/addons/web/static/src/js/formats.js +++ b/addons/web/static/src/js/formats.js @@ -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') { |
