odoo-addon-base-name-search-improved


Nameodoo-addon-base-name-search-improved JSON
Version 16.0.1.0.0.10 PyPI version JSON
download
home_pagehttps://github.com/OCA/server-tools
SummaryFriendlier search when typing in relation fields
upload_time2024-01-31 06:41:21
maintainer
docs_urlNone
authorDaniel Reis, Odoo Community Association (OCA), ADHOC SA
requires_python>=3.10
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ====================
Improved Name Search
====================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:88daa951eef68e162381052878cb525cb0c1e6b0a72cd2a1f9d138dca31bd6f4
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :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/16.0/base_name_search_improved
    :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-16-0/server-tools-16-0-base_name_search_improved
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=16.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Extends the name search feature to use additional, more relaxed
matching methods, and to allow searching into configurable additional
record fields.

The name search is the lookup feature to select a related record.
For example, selecting a Customer on a new Sales order.

For example, typing "john brown" doesn't match "John M. Brown".
The relaxed search also looks up for records containing all the words,
so "John M. Brown" would be a match.
It also tolerates words in a different order, so searching
for "brown john" also works.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image0.png

Additionally, an Administrator can configure other fields to also lookup into.
For example, Customers could be additionally searched by City or Phone number.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image2.png

How it works:

Regular name search is performed, and the additional search logic is only
triggered if not enough results are found.
This way, no overhead is added on searches that would normally yield results.

But if not enough results are found, then additional search methods are tried.
The specific methods used are:

- Try regular search on each of the additional fields
- Try ordered word search on each of the search fields
- Try unordered word search on each of the search fields

All results found are presented in that order,
hopefully presenting them in order of relevance.

**Table of contents**

.. contents::
   :local:

Configuration
=============

The fuzzy search is automatically enabled on all Models.
Note that this only affects typing in related fields.
The regular ``search()``, used in the top right search box, is not affected.

Additional search fields can be configured at Settings > Technical > Database > Models,
using the "Name Search Fields" field.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image1.png
   :alt: Name Search Fields
   :width: 600 px

Usage
=====

Just type into any related field, such as Customer on a Sale Order.

Known issues / Roadmap
======================

* Also use fuzzy search, such as the Levenshtein distance:
  https://www.postgresql.org/docs/9.5/static/fuzzystrmatch.html
* The list of additional fields to search could benefit from caching, for efficiency.
* This feature could also be implemented for regular ``search`` on the ``name`` field.
* While adding m2o or other related field that also have an improved name search, that improved name search is not used (while if name_search is customizend on a module and you add a field of that model on another model it works ok). Esto por ejemplo es en productos si agregamos campo "categoría pública" y a categoría pública le ponemos "parent_id". Entonces vamos a ver que si buscamos por una categoría padre no busca nada, en vez si hacemos esa lógica en name_search de modulo si funciona

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_name_search_improved%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Daniel Reis
* ADHOC SA

Contributors
~~~~~~~~~~~~

* Daniel Reis <https://github.com/dreispt>
* Kitti U. <kittiu@ecosoft.co.th> (migrate to v14)
* Radovan Skolnik <radovan@skolnik.info>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Odoo Community Association

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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 <https://github.com/OCA/server-tools/tree/16.0/base_name_search_improved>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/server-tools",
    "name": "odoo-addon-base-name-search-improved",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "",
    "author": "Daniel Reis, Odoo Community Association (OCA), ADHOC SA",
    "author_email": "support@odoo-community.org",
    "download_url": "",
    "platform": null,
    "description": "====================\nImproved Name Search\n====================\n\n.. \n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! source digest: sha256:88daa951eef68e162381052878cb525cb0c1e6b0a72cd2a1f9d138dca31bd6f4\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n    :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github\n    :target: https://github.com/OCA/server-tools/tree/16.0/base_name_search_improved\n    :alt: OCA/server-tools\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_name_search_improved\n    :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n    :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=16.0\n    :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nExtends the name search feature to use additional, more relaxed\nmatching methods, and to allow searching into configurable additional\nrecord fields.\n\nThe name search is the lookup feature to select a related record.\nFor example, selecting a Customer on a new Sales order.\n\nFor example, typing \"john brown\" doesn't match \"John M. Brown\".\nThe relaxed search also looks up for records containing all the words,\nso \"John M. Brown\" would be a match.\nIt also tolerates words in a different order, so searching\nfor \"brown john\" also works.\n\n.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image0.png\n\nAdditionally, an Administrator can configure other fields to also lookup into.\nFor example, Customers could be additionally searched by City or Phone number.\n\n.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image2.png\n\nHow it works:\n\nRegular name search is performed, and the additional search logic is only\ntriggered if not enough results are found.\nThis way, no overhead is added on searches that would normally yield results.\n\nBut if not enough results are found, then additional search methods are tried.\nThe specific methods used are:\n\n- Try regular search on each of the additional fields\n- Try ordered word search on each of the search fields\n- Try unordered word search on each of the search fields\n\nAll results found are presented in that order,\nhopefully presenting them in order of relevance.\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nConfiguration\n=============\n\nThe fuzzy search is automatically enabled on all Models.\nNote that this only affects typing in related fields.\nThe regular ``search()``, used in the top right search box, is not affected.\n\nAdditional search fields can be configured at Settings > Technical > Database > Models,\nusing the \"Name Search Fields\" field.\n\n.. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image1.png\n   :alt: Name Search Fields\n   :width: 600 px\n\nUsage\n=====\n\nJust type into any related field, such as Customer on a Sale Order.\n\nKnown issues / Roadmap\n======================\n\n* Also use fuzzy search, such as the Levenshtein distance:\n  https://www.postgresql.org/docs/9.5/static/fuzzystrmatch.html\n* The list of additional fields to search could benefit from caching, for efficiency.\n* This feature could also be implemented for regular ``search`` on the ``name`` field.\n* While adding m2o or other related field that also have an improved name search, that improved name search is not used (while if name_search is customizend on a module and you add a field of that model on another model it works ok). Esto por ejemplo es en productos si agregamos campo \"categor\u00eda p\u00fablica\" y a categor\u00eda p\u00fablica le ponemos \"parent_id\". Entonces vamos a ver que si buscamos por una categor\u00eda padre no busca nada, en vez si hacemos esa l\u00f3gica en name_search de modulo si funciona\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_name_search_improved%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Daniel Reis\n* ADHOC SA\n\nContributors\n~~~~~~~~~~~~\n\n* Daniel Reis <https://github.com/dreispt>\n* Kitti U. <kittiu@ecosoft.co.th> (migrate to v14)\n* Radovan Skolnik <radovan@skolnik.info>\n\nOther credits\n~~~~~~~~~~~~~\n\nThe development of this module has been financially supported by:\n\n* Odoo Community Association\n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nThis module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/16.0/base_name_search_improved>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Friendlier search when typing in relation fields",
    "version": "16.0.1.0.0.10",
    "project_urls": {
        "Homepage": "https://github.com/OCA/server-tools"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7faa3825209efa67d94e302abc45b184de5633478e8e4ba2e2271df070f13ca2",
                "md5": "32e2bd8422d8c180002c78a6574350d1",
                "sha256": "986357363cef9fe91e362ebe69d1e67ffc8283404ea38ac68f3a82e78e949df1"
            },
            "downloads": -1,
            "filename": "odoo_addon_base_name_search_improved-16.0.1.0.0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "32e2bd8422d8c180002c78a6574350d1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 205089,
            "upload_time": "2024-01-31T06:41:21",
            "upload_time_iso_8601": "2024-01-31T06:41:21.590315Z",
            "url": "https://files.pythonhosted.org/packages/7f/aa/3825209efa67d94e302abc45b184de5633478e8e4ba2e2271df070f13ca2/odoo_addon_base_name_search_improved-16.0.1.0.0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-31 06:41:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "server-tools",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "odoo-addon-base-name-search-improved"
}
        
Elapsed time: 0.18001s