From 40439096254ea3cb10154473babc245adb49020b Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 4 Nov 2015 10:26:55 +0100 Subject: [PATCH] [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. --- addons/web_editor/static/src/js/snippets.options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/snippets.options.js b/addons/web_editor/static/src/js/snippets.options.js index 941d43ccd50..a6f7368fb6c 100644 --- a/addons/web_editor/static/src/js/snippets.options.js +++ b/addons/web_editor/static/src/js/snippets.options.js @@ -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]);