[FIX] minor inconsistency in m2o

bzr revid: nicolas.vanhoren@openerp.com-20120628130808-od8p8e52p02w63dc
This commit is contained in:
niv-openerp 2012-06-28 15:08:08 +02:00
parent 6cb0451944
commit 7cc69d917b
1 changed files with 5 additions and 4 deletions

View File

@ -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],
};
});