You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.9 KiB

  1. ##############################################################################
  2. #
  3. # OpenERP, Open Source Management Solution
  4. # Copyright (C) 2015 by UAB Versada (Ltd.) <http://www.versada.lt>
  5. # and contributors.
  6. #
  7. # All Rights Reserved.
  8. #
  9. # This program is free software: you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation, either version 3 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. #
  22. ##############################################################################
  23. {
  24. 'name': "Force AND on Search Input",
  25. 'version': '0.1',
  26. 'author': 'Versada UAB, Odoo Community Association (OCA)',
  27. 'category': 'web',
  28. 'website': 'http://www.versada.lt',
  29. 'description': """
  30. Force AND on Search Input
  31. =========================
  32. When searching for records on same field Odoo joins multiple queries with OR.
  33. For example:
  34. * Perform a search for customer "John" on field Name
  35. * Odoo displays customers containing "John"
  36. * Search for "Smith" on same field Name
  37. * Odoo displays customers containing "John" OR "Smith"
  38. With this module installed you can press Shift key before searching for "Smith"
  39. and Odoo finds customers containing "John" AND "Smith"
  40. Usage
  41. =====
  42. * Enter your value in Search Input field
  43. * Press and hold Shift key
  44. * Select field with mouse or keyboard to perform search on
  45. """,
  46. 'depends': [
  47. 'web',
  48. ],
  49. 'data': [
  50. 'data.xml',
  51. ],
  52. 'installable': True,
  53. 'application': False,
  54. }