From 9d84b3ff8455c8e656cd9e6a9cc709adc74e2c46 Mon Sep 17 00:00:00 2001 From: Andrius Preimantas Date: Tue, 28 Apr 2015 10:11:31 +0300 Subject: [PATCH] [IMP] Add README.rst --- web_search_with_and/README.rst | 46 ++++++++++++++++++++++++++++++ web_search_with_and/__openerp__.py | 26 +++++++++++++---- 2 files changed, 67 insertions(+), 5 deletions(-) create mode 100644 web_search_with_and/README.rst diff --git a/web_search_with_and/README.rst b/web_search_with_and/README.rst new file mode 100644 index 00000000..ec963eb1 --- /dev/null +++ b/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 + +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. diff --git a/web_search_with_and/__openerp__.py b/web_search_with_and/__openerp__.py index 5b873ea5..64b0369d 100644 --- a/web_search_with_and/__openerp__.py +++ b/web_search_with_and/__openerp__.py @@ -1,8 +1,8 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2014 by UAB Versada (Ltd.) -# and contributors. See AUTHORS for more details. +# Copyright (C) 2015 by UAB Versada (Ltd.) +# and contributors. # # All Rights Reserved. # @@ -28,10 +28,26 @@ 'category': 'web', 'website': 'http://www.versada.lt', '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': [ 'web',