[FIX] web_editor: edit event badge on the website.

Issue: edit the badge on the event list in the website, the many2one widget doesn't work because the request domain is false.
This commit is contained in:
Christophe Matthieu
2015-11-04 16:10:43 +01:00
parent 4f72ba397a
commit 4043909625
@@ -461,7 +461,7 @@ var many2one = Option.extend({
return;
}
if (isNaN(+name)) {
if (this.Model === "res.partner") {
if (this.Model !== "res.partner") {
domain.push(['name', 'ilike', name]);
} else {
domain.push('|', ['name', 'ilike', name], ['email', 'ilike', name]);