Browse Source

[IMP] Add README.rst

pull/127/head
Andrius Preimantas 10 years ago
parent
commit
9d84b3ff84
  1. 46
      web_search_with_and/README.rst
  2. 26
      web_search_with_and/__openerp__.py

46
web_search_with_and/README.rst

@ -0,0 +1,46 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
Force AND on Search Input
===========
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 Search Input field
* Press and hold Shift key
* Select field with mouse or keyboard to perform search on
Credits
=======
Contributors
------------
* Andrius Preimantas <andrius@versada.lt>
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://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 http://odoo-community.org.

26
web_search_with_and/__openerp__.py

@ -1,8 +1,8 @@
############################################################################## ##############################################################################
# #
# OpenERP, Open Source Management Solution # OpenERP, Open Source Management Solution
# Copyright (C) 2014 by UAB Versada (Ltd.) <http://www.versada.lt>
# and contributors. See AUTHORS for more details.
# Copyright (C) 2015 by UAB Versada (Ltd.) <http://www.versada.lt>
# and contributors.
# #
# All Rights Reserved. # All Rights Reserved.
# #
@ -28,10 +28,26 @@
'category': 'web', 'category': 'web',
'website': 'http://www.versada.lt', 'website': 'http://www.versada.lt',
'description': """ 'description': """
When searching on same field multiple times Odoo joins queries with OR.
Press Shift key to join them with AND.
Force AND on Search Input
=========================
This gives the same affect as using Advanced Search on same field several times.
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 Search Input field
* Press and hold Shift key
* Select field with mouse or keyboard to perform search on
""", """,
'depends': [ 'depends': [
'web', 'web',

Loading…
Cancel
Save