[FIX] minor inconsistency in m2o
bzr revid: nicolas.vanhoren@openerp.com-20120628130808-od8p8e52p02w63dc
This commit is contained in:
parent
6cb0451944
commit
7cc69d917b
|
@ -2462,11 +2462,12 @@ instance.web.form.CompletionFieldMixin = {
|
||||||
self.last_search = data;
|
self.last_search = data;
|
||||||
// possible selections for the m2o
|
// possible selections for the m2o
|
||||||
var values = _.map(data, function(x) {
|
var values = _.map(data, function(x) {
|
||||||
|
x[1] = x[1].split("\n")[0];
|
||||||
return {
|
return {
|
||||||
label: _.str.escapeHTML(x[1].split("\n")[0]),
|
label: _.str.escapeHTML(x[1]),
|
||||||
value:x[1],
|
value: x[1],
|
||||||
name:x[1],
|
name: x[1],
|
||||||
id:x[0]
|
id: x[0],
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue