diff --git a/web_search_with_and/README.rst b/web_search_with_and/README.rst new file mode 100644 index 00000000..75d7e4ca --- /dev/null +++ b/web_search_with_and/README.rst @@ -0,0 +1,62 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +==================================== +Use AND conditions on omnibar search +==================================== + +When searching for records on same field Odoo joins multiple queries with OR. +For example: + +* Perform a search for customer "John" on field Name +* Odoo displays customers containing "John" +* Search for "Smith" on same field Name +* Odoo displays customers containing "John" OR "Smith" + +With this module installed you can press Shift key before searching for "Smith" +and Odoo finds customers containing "John" AND "Smith" + +Usage +===== + +* Enter your value in omnibar search field +* Press and hold Shift key +* Select field with mouse or keyboard to perform search on + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/162/11.0 + +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 smash it by providing detailed and welcomed feedback. + +Credits +======= + +Contributors +------------ + +* Andrius Preimantas +* Adrien Didenot +* Francesco Apruzzese + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit https://odoo-community.org. \ No newline at end of file diff --git a/web_search_with_and/__init__.py b/web_search_with_and/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/web_search_with_and/__manifest__.py b/web_search_with_and/__manifest__.py new file mode 100644 index 00000000..a43a3437 --- /dev/null +++ b/web_search_with_and/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2015 Andrius Preimantas +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + 'name': "Use AND conditions on omnibar search", + 'version': '11.0.1.0.0', + 'author': 'Versada UAB, Odoo Community Association (OCA)', + 'license': 'AGPL-3', + 'category': 'web', + 'website': 'https://github.com/OCA/web', + 'depends': [ + 'web', + ], + 'data': [ + 'data/data.xml', + ], +} diff --git a/web_search_with_and/data/data.xml b/web_search_with_and/data/data.xml new file mode 100644 index 00000000..3d6a7956 --- /dev/null +++ b/web_search_with_and/data/data.xml @@ -0,0 +1,8 @@ + + +