[IMP] web_search_with_and: black, isort, prettier

pull/2127/head
pedroguirao 2022-01-14 10:27:33 +01:00
parent cfe447e33f
commit c7808902ac
3 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1 @@
../../../../web_search_with_and

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@ -1,4 +1,4 @@
odoo.define("web_search_with_and", function(require) { odoo.define("web_search_with_and", function (require) {
"use strict"; "use strict";
var searchBarAutocompleteRegistry = require("web.search_bar_autocomplete_sources_registry"); var searchBarAutocompleteRegistry = require("web.search_bar_autocomplete_sources_registry");
@ -6,7 +6,7 @@ odoo.define("web_search_with_and", function(require) {
SearchBar.include({ SearchBar.include({
// Override the base method to detect a "shift" event // Override the base method to detect a "shift" event
_onAutoCompleteSelected: function(e, ui) { _onAutoCompleteSelected: function (e, ui) {
var values = ui.item.facet.values; var values = ui.item.facet.values;
if ( if (
e.shiftKey && e.shiftKey &&