mirror of https://github.com/OCA/web.git
web_search_with_and: Migration to 15.0
parent
10e0b09caf
commit
4efb0522de
|
@ -4,11 +4,16 @@
|
|||
|
||||
{
|
||||
"name": "Use AND conditions on omnibar search",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "15.0.1.0.0",
|
||||
"author": "Versada UAB, ACSONE SA/NV, Serincloud, Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"category": "web",
|
||||
"website": "https://github.com/OCA/web",
|
||||
"depends": ["web"],
|
||||
"data": ["views/assets.xml"],
|
||||
"assets": {
|
||||
"web.assets_backend": [
|
||||
"/web_search_with_and/static/src/js/control_panel_model_extension.js",
|
||||
"/web_search_with_and/static/src/js/search_bar.js",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
|
|
@ -4,3 +4,4 @@
|
|||
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
|
||||
* Souheil Bejaoui <souheil.bejaoui@acsone.eu>
|
||||
* Pedro Guirao <pedro.guirao@ingenieriacloud.com>
|
||||
* Nedas Žilinskas <nedas.zilinskas@avoin.systems>
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
|
||||
<template
|
||||
id="assets_backend"
|
||||
name="web_view_editor assets"
|
||||
inherit_id="web.assets_backend"
|
||||
>
|
||||
<xpath expr="." position="inside">
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/web_search_with_and/static/src/js/control_panel_model_extension.js"
|
||||
/>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/web_search_with_and/static/src/js/search_bar.js"
|
||||
/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
Loading…
Reference in New Issue