Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] web_search_with_and #3115

Merged
merged 31 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e254db2
Squash of 8 commits
Apr 27, 2015
56b8049
Migrate web_search_with_and from 8.0 to 10.0
Creamaster Feb 2, 2017
671b951
web_search_with_and: Migration to 11.0
OpenCode Mar 20, 2018
b1c5d6f
Update web_search_with_and.pot
oca-travis Jun 24, 2018
0dc5762
Port web_search_with_and to version 12.0
ddufresne Feb 22, 2019
a670283
Update web_search_with_and.pot
oca-travis Oct 9, 2019
bd68e84
README.rst
OCA-git-bot Oct 9, 2019
800c343
Added translation using Weblate (Portuguese)
pedrocs-exo Jun 18, 2020
22d8ffb
README.rst
OCA-git-bot Jul 13, 2020
1cb0416
README.rst
OCA-git-bot Jul 14, 2020
5389642
Added translation using Weblate (Spanish)
claudiagn Jul 23, 2020
07f40c0
- migration web_search_with_and
sbejaoui Nov 9, 2020
e4b2b09
Update web_search_with_and.pot
oca-travis Nov 10, 2020
cbad8b7
README.rst
OCA-git-bot Nov 10, 2020
8173a0b
Added translation using Weblate (Italian)
alessandro-fiorino Jan 22, 2021
a1047e9
web_search_with_and: black, isort, prettier
pedroguirao Jan 14, 2022
10d4229
web_search_with_and: Migration to 14.0
pedroguirao Jan 14, 2022
d9f8e19
Update web_search_with_and.pot
oca-travis Mar 18, 2022
10e0b09
README.rst
OCA-git-bot Mar 18, 2022
4efb052
web_search_with_and: Migration to 15.0
Mar 24, 2022
ac4f127
Update web_search_with_and.pot
May 22, 2022
f352f9b
README.rst
OCA-git-bot May 22, 2022
b285b06
[16.0][MIG] web_search_with_and.
Sandip-scs Jan 13, 2023
a89b053
[UPD] Update web_search_with_and.pot
Jan 31, 2023
9cba5af
[UPD] README.rst
OCA-git-bot Jan 31, 2023
5610631
Update translation files
weblate Jan 31, 2023
80e670b
[UPD] README.rst
OCA-git-bot Sep 3, 2023
9bf04fa
[IMP] web_search_with_and: black, isort, prettier
JasminSForgeFlow Feb 12, 2025
e579e85
[MIG] web_search_with_and: Migration to 17.0
JasminSForgeFlow Feb 12, 2025
72a5d2f
[IMP] web_search_with_and: black, isort, prettier
JasminSForgeFlow Mar 7, 2025
f488992
[MIG] web_search_with_and: Migration to 18.0
JasminSForgeFlow Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions web_search_with_and/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
====================================
Use AND conditions on omnibar search
====================================

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

.. |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%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/18.0/web_search_with_and
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_search_with_and
: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/web&target_branch=18.0
:alt: Try me on Runboat

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

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"

**Table of contents**

.. contents::
:local:

Usage
=====

- Enter your value in omnibar search field
- Press and hold Shift key
- Select field with mouse or keyboard to perform search on

|Try me on Runbot|

.. |Try me on Runbot| image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:target: https://runbot.odoo-community.org/runbot/162/11.0

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/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/web/issues/new?body=module:%20web_search_with_and%0Aversion:%2018.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
-------

* Sandip SCS
* Versada UAB
* ACSONE SA/NV
* Serincloud

Contributors
------------

- Andrius Preimantas <andrius@versada.lt>
- Adrien Didenot <adrien.didenot@horanet.com>
- Francesco Apruzzese <f.apruzzese@apuliasoftware.it>
- 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>
- Sandip SerpentCS <sandip.v.serpentcs@gmail.com>

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/web <https://github.com/OCA/web/tree/18.0/web_search_with_and>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file added web_search_with_and/__init__.py
Empty file.
20 changes: 20 additions & 0 deletions web_search_with_and/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2015 Andrius Preimantas <andrius@versada.lt>
# Copyright 2020 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Use AND conditions on omnibar search",
"version": "18.0.1.0.0",
"author": """Sandip SCS, Versada UAB, ACSONE SA/NV, Serincloud,
Odoo Community Association (OCA)""",
"license": "AGPL-3",
"category": "web",
"website": "https://github.com/OCA/web",
"depends": ["web"],
"assets": {
"web.assets_backend": [
"/web_search_with_and/static/src/js/search_model.esm.js",
"/web_search_with_and/static/src/js/search_bar.esm.js",
],
},
}
Empty file added web_search_with_and/i18n/es.po
Empty file.
Empty file added web_search_with_and/i18n/it.po
Empty file.
Empty file added web_search_with_and/i18n/pt.po
Empty file.
13 changes: 13 additions & 0 deletions web_search_with_and/i18n/web_search_with_and.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
3 changes: 3 additions & 0 deletions web_search_with_and/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
8 changes: 8 additions & 0 deletions web_search_with_and/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- Andrius Preimantas \<<andrius@versada.lt>\>
- Adrien Didenot \<<adrien.didenot@horanet.com>\>
- Francesco Apruzzese \<<f.apruzzese@apuliasoftware.it>\>
- 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>\>
- Sandip SerpentCS \<<sandip.v.serpentcs@gmail.com>\>
10 changes: 10 additions & 0 deletions web_search_with_and/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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"
5 changes: 5 additions & 0 deletions web_search_with_and/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Enter your value in omnibar search field
- Press and hold Shift key
- Select field with mouse or keyboard to perform search on

[![Try me on Runbot](https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas)](https://runbot.odoo-community.org/runbot/162/11.0)
Binary file added web_search_with_and/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading