diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-06-28 15:08:08 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-06-28 15:08:08 +0200 |
| commit | 7cc69d917beaab4598f82ccb8e72cec4b7fb55b9 (patch) | |
| tree | ed81f96814b480b36486211a50a0a45878c85e30 /addons/web/static/src | |
| parent | 6cb0451944689577177ce65ced59b38cfde76821 (diff) | |
[FIX] minor inconsistency in m2o
bzr revid: nicolas.vanhoren@openerp.com-20120628130808-od8p8e52p02w63dc
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index c8041b82f03..632080b2ba9 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2462,11 +2462,12 @@ instance.web.form.CompletionFieldMixin = { self.last_search = data; // possible selections for the m2o var values = _.map(data, function(x) { + x[1] = x[1].split("\n")[0]; return { - label: _.str.escapeHTML(x[1].split("\n")[0]), - value:x[1], - name:x[1], - id:x[0] + label: _.str.escapeHTML(x[1]), + value: x[1], + name: x[1], + id: x[0], }; }); |
