[MIG][15.0] web_search_with_and: Migration to 15.0

This commit is contained in:
Nedas Žilinskas
2022-03-24 12:57:31 +02:00
parent d8f7ab5d2a
commit df77e251ce
5 changed files with 12 additions and 25 deletions

View File

@@ -8,8 +8,9 @@ odoo.define(
ControlPanelModelExtension: require("web/static/src/js/control_panel/control_panel_model_extension.js"),
};
const patchObject = components.ControlPanelModelExtension.prototype;
patch(
components.ControlPanelModelExtension,
patchObject,
"web_search_with_and/static/src/js/control_panel_model_extension.js",
{
addAutoCompletionValues({

View File

@@ -6,7 +6,8 @@ odoo.define("web_search_with_and/static/src/js/search_bar.js", function (require
SearchBar: require("web.SearchBar"),
};
patch(components.SearchBar, "web_search_with_and/static/src/js/search_bar.js", {
const patchObject = components.SearchBar.prototype;
patch(patchObject, "web_search_with_and/static/src/js/search_bar.js", {
/**
* @private
* @param {Object} source