From c7808902ac1e1accb34c58ac4abe3564340e09ca Mon Sep 17 00:00:00 2001 From: pedroguirao Date: Fri, 14 Jan 2022 10:27:33 +0100 Subject: [PATCH] [IMP] web_search_with_and: black, isort, prettier --- setup/web_search_with_and/odoo/addons/web_search_with_and | 1 + setup/web_search_with_and/setup.py | 6 ++++++ web_search_with_and/static/src/js/search.js | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 120000 setup/web_search_with_and/odoo/addons/web_search_with_and create mode 100644 setup/web_search_with_and/setup.py diff --git a/setup/web_search_with_and/odoo/addons/web_search_with_and b/setup/web_search_with_and/odoo/addons/web_search_with_and new file mode 120000 index 000000000..d32981712 --- /dev/null +++ b/setup/web_search_with_and/odoo/addons/web_search_with_and @@ -0,0 +1 @@ +../../../../web_search_with_and \ No newline at end of file diff --git a/setup/web_search_with_and/setup.py b/setup/web_search_with_and/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/web_search_with_and/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/web_search_with_and/static/src/js/search.js b/web_search_with_and/static/src/js/search.js index fc7380f7c..d543694ca 100644 --- a/web_search_with_and/static/src/js/search.js +++ b/web_search_with_and/static/src/js/search.js @@ -1,4 +1,4 @@ -odoo.define("web_search_with_and", function(require) { +odoo.define("web_search_with_and", function (require) { "use strict"; var searchBarAutocompleteRegistry = require("web.search_bar_autocomplete_sources_registry"); @@ -6,7 +6,7 @@ odoo.define("web_search_with_and", function(require) { SearchBar.include({ // Override the base method to detect a "shift" event - _onAutoCompleteSelected: function(e, ui) { + _onAutoCompleteSelected: function (e, ui) { var values = ui.item.facet.values; if ( e.shiftKey &&