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.

95 lines
2.9 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. =========================================================================
  5. Allow users to set manually a quantity of items to display in a tree view
  6. =========================================================================
  7. This module extends the functionality of web module, to improve list views and
  8. to allow users to display custom quantity of items.
  9. (By default, in Odoo, user can only display 80 / 200 / 500 / 2000 elements in
  10. a tree view)
  11. Usage
  12. =====
  13. To use this module, you need to:
  14. #. Go to a list view
  15. #. Click on the item '1 - 80 of xxx'
  16. #. Tip a custom quantity of item you want to see, and then press return
  17. Sample for res.partner model with a limit of 3:
  18. .. image:: ./web_listview_custom_element_number/static/src/img/screnshot_partner_limit.png
  19. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  20. :alt: Try me on Runbot
  21. :target: https://runbot.odoo-community.org/runbot/162/9.0
  22. Technical information
  23. =====================
  24. * Replace a select element by an input with datalist option. That allows
  25. to set a custom value, or to select an option. (same options as before:
  26. 80 / 200 / 500 / 2000 / unlimited);
  27. * WARNING: 'Datalist' is a HTML5 tag; If your browser is not HTML5
  28. compliant, the options will not be displayed (but it is possible for
  29. user to select manually a value);
  30. See browser Support: http://www.w3schools.com/tags/tag_datalist.asp
  31. * The display of the datalist input can be different depending of the browser.
  32. * FireFox Display:
  33. .. image:: ./web_listview_custom_element_number/static/src/img/screnshot_firefox.png
  34. * Chrome Display:
  35. .. image:: ./web_listview_custom_element_number/static/src/img/screnshot_chrome.png
  36. Known issues / Roadmap
  37. ======================
  38. * When pressing Esc key, it could be user friendly to return to the previous
  39. state (before editing the quantity).
  40. Bug Tracker
  41. ===========
  42. Bugs are tracked on `GitHub Issues
  43. <https://github.com/OCA/web/issues>`_. In case of trouble, please
  44. check there if your issue has already been reported. If you spotted it first,
  45. help us smash it by providing detailed and welcomed feedback.
  46. Credits
  47. =======
  48. Contributors
  49. ------------
  50. * Sylvain LE GAL (https://twitter.com/legalsylvain)
  51. Funders
  52. -------
  53. The development of this module has been financially supported by:
  54. * Akretion (http://www.akretion.com)
  55. Maintainer
  56. ----------
  57. .. image:: https://odoo-community.org/logo.png
  58. :alt: Odoo Community Association
  59. :target: https://odoo-community.org
  60. This module is maintained by the OCA.
  61. OCA, or the Odoo Community Association, is a nonprofit organization whose
  62. mission is to support the collaborative development of Odoo features and
  63. promote its widespread use.
  64. To contribute to this module, please visit https://odoo-community.org.