From a7224f1f6e62792894c36bca465591cb2ed74f16 Mon Sep 17 00:00:00 2001 From: Eduardo De Miguel Date: Fri, 11 Mar 2022 08:51:47 +0100 Subject: [PATCH] [MIG] base_search_fuzzy: Migration to 15.0 [ADD] Roadmap: Module no longer needed from v16 --- base_search_fuzzy/README.rst | 13 +++++++------ base_search_fuzzy/__manifest__.py | 2 +- base_search_fuzzy/i18n/base_search_fuzzy.pot | 2 +- base_search_fuzzy/models/trgm_index.py | 2 -- base_search_fuzzy/readme/ROADMAP.rst | 1 + base_search_fuzzy/static/description/index.html | 9 +++++---- base_search_fuzzy/tests/test_query_generation.py | 4 +--- base_search_fuzzy/views/trgm_index.xml | 4 ++-- 8 files changed, 18 insertions(+), 19 deletions(-) diff --git a/base_search_fuzzy/README.rst b/base_search_fuzzy/README.rst index 3f77f3928..8fca24618 100644 --- a/base_search_fuzzy/README.rst +++ b/base_search_fuzzy/README.rst @@ -14,16 +14,16 @@ Fuzzy Search :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github - :target: https://github.com/OCA/server-tools/tree/14.0/base_search_fuzzy + :target: https://github.com/OCA/server-tools/tree/15.0/base_search_fuzzy :alt: OCA/server-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_search_fuzzy + :target: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_search_fuzzy :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/149/14.0 + :target: https://runbot.odoo-community.org/runbot/149/15.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This addon provides the ability to create GIN or GiST indexes of char and text fields and also to use the search operator `%` in search domains. Currently @@ -90,6 +90,7 @@ Known issues / Roadmap * Modify the general search parts (e.g. in tree view or many2one fields) * Add better `order by` handling +* This module will not be necessary from version 16 (`[IMP] Better handling of indexes #83015 `_) Bug Tracker =========== @@ -97,7 +98,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -137,6 +138,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/server-tools `_ project on GitHub. +This module is part of the `OCA/server-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_search_fuzzy/__manifest__.py b/base_search_fuzzy/__manifest__.py index f8fe753a1..e3c428fd9 100644 --- a/base_search_fuzzy/__manifest__.py +++ b/base_search_fuzzy/__manifest__.py @@ -5,7 +5,7 @@ "name": "Fuzzy Search", "summary": "Fuzzy search with the PostgreSQL trigram extension", "category": "Uncategorized", - "version": "14.0.1.0.1", + "version": "15.0.1.0.0", "website": "https://github.com/OCA/server-tools", "author": "bloopark systems GmbH & Co. KG, " "ForgeFlow, " diff --git a/base_search_fuzzy/i18n/base_search_fuzzy.pot b/base_search_fuzzy/i18n/base_search_fuzzy.pot index 62bb1ac8e..5eca81867 100644 --- a/base_search_fuzzy/i18n/base_search_fuzzy.pot +++ b/base_search_fuzzy/i18n/base_search_fuzzy.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/base_search_fuzzy/models/trgm_index.py b/base_search_fuzzy/models/trgm_index.py index 2d7f54df6..192704d66 100644 --- a/base_search_fuzzy/models/trgm_index.py +++ b/base_search_fuzzy/models/trgm_index.py @@ -28,7 +28,6 @@ class TrgmIndex(models.Model): ) index_name = fields.Char( - string="Index Name", readonly=True, help="The index name is automatically generated like " "fieldname_indextype_idx. If the index already exists and the " @@ -39,7 +38,6 @@ class TrgmIndex(models.Model): index_type = fields.Selection( selection=[("gin", "GIN"), ("gist", "GiST")], - string="Index Type", default="gin", required=True, ondelete={"gin": "set default", "gist": "set default"}, diff --git a/base_search_fuzzy/readme/ROADMAP.rst b/base_search_fuzzy/readme/ROADMAP.rst index 7955fa57b..4e4493405 100644 --- a/base_search_fuzzy/readme/ROADMAP.rst +++ b/base_search_fuzzy/readme/ROADMAP.rst @@ -1,2 +1,3 @@ * Modify the general search parts (e.g. in tree view or many2one fields) * Add better `order by` handling +* This module will not be necessary from version 16 (`[IMP] Better handling of indexes #83015 `_) diff --git a/base_search_fuzzy/static/description/index.html b/base_search_fuzzy/static/description/index.html index 4ece1a27c..5f6834d3f 100644 --- a/base_search_fuzzy/static/description/index.html +++ b/base_search_fuzzy/static/description/index.html @@ -3,7 +3,7 @@ - + Fuzzy Search