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.

62 lines
2.6 KiB

  1. .. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
  3. :alt: License: LGPL-3
  4. =========================================
  5. Search for x2x records in advanced search
  6. =========================================
  7. Standard behavior in advanced search for one2many, many2many and many2one fields is to do a `name_search`. This often is not satisfactionary as you might want to search for other properties. There might also be cases where you don't exactly know what you're searching for, then a list of possible options is necessary too. This module enables you to have a full search view to select the record in question, and either select specific records or select them using a search query of its own.
  8. Usage
  9. =====
  10. To use this module, you need to:
  11. * open the advanced search options in a search view
  12. * select a one2many, many2many or many2one field
  13. * select operator `is equal to` or `is not equal to`
  14. * the textfield changes to a many2one selection field where you can search for the record in question
  15. To search for properties of linked records (ie invoices for customers with a credit limit higher than X):
  16. * open the advanced search options in a search view
  17. * select a one2many, many2many or many2one field
  18. * select operator `is in selection`
  19. * in the search view that pops up, select the criteria
  20. * click `Use criteria`
  21. * if you're only interested in certain records, mark them en click `Select`
  22. * if you want to change your selection afterwards, click the search symbol right of the selection term
  23. In both cases, don't forget to click `Apply` to actually execute the search.
  24. Note that you can stack searching for properties: Simply add another advanced search in the selection search window. You can do this indefinetely, so it is possible to search for moves belonging to a journal which has a user who is member of a certain group etc.
  25. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  26. :alt: Try me on Runbot
  27. :target: https://runbot.odoo-community.org/runbot/154/9.0
  28. Credits
  29. =======
  30. Contributors
  31. ------------
  32. * Holger Brunn <hbrunn@therp.nl>
  33. * Vicent Cubells <vicent.cubells@tecnativa.com>
  34. Maintainer
  35. ----------
  36. .. image:: https://odoo-community.org/logo.png
  37. :alt: Odoo Community Association
  38. :target: https://odoo-community.org
  39. This module is maintained by the OCA.
  40. OCA, or the Odoo Community Association, is a nonprofit organization whose
  41. mission is to support the collaborative development of Odoo features and
  42. promote its widespread use.
  43. To contribute to this module, please visit https://odoo-community.org.