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.

45 lines
1.8 KiB

  1. Search for x2x records in advanced search
  2. =========================================
  3. Standard behavior in advanced search for one2many, many2many and many2one fields is to do a `name_search`. This is not always 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.
  4. Usage
  5. =====
  6. To use this module, you need to:
  7. * open the advanced search options in a search view
  8. * select a one2many, many2many or many2one field
  9. * select operator `is equal to` or `is not equal to`
  10. * the textfield changes to a many2one selection field where you can search for the record in question
  11. * to select multiple records, add another condition for the same field before applying the conditions (that's standard behavior)
  12. For further information, please visit:
  13. * https://www.odoo.com/forum/help-1
  14. Known issues / Roadmap
  15. ======================
  16. * from what we have now, it shouldn't be too difficult to add an operator `use condition`, show a search view for the field's model and use the domain filled in there. This way we can have conditions like `[('journal_id.user_id.groups_id.name', '=', 'test')]`
  17. Credits
  18. =======
  19. Contributors
  20. ------------
  21. * Holger Brunn <hbrunn@therp.nl>
  22. Maintainer
  23. ----------
  24. .. image:: http://odoo-community.org/logo.png
  25. :alt: Odoo Community Association
  26. :target: http://odoo-community.org
  27. This module is maintained by the OCA.
  28. 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.
  29. To contribute to this module, please visit http://odoo-community.org.