web_search_with_and: Migration to 15.0

pull/3115/head
Nedas Žilinskas 2022-03-24 12:57:31 +02:00 committed by JasminSForgeFlow
parent 10e0b09caf
commit 4efb0522de
5 changed files with 12 additions and 25 deletions

View File

@ -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",
],
},
}

View File

@ -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>

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

View File

@ -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>