[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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user