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.

74 lines
2.3 KiB

  1. Allow users to set manually a quantity of items to display in a tree view
  2. =========================================================================
  3. By default, in Odoo, user can display 80 / 200 / 500 / 2000 elements in
  4. a tree view. With that module, user can select a custom number of items to
  5. display;
  6. Technical information
  7. ---------------------
  8. * replace a select element by an input with datalist option. That allows
  9. to set a custom value, or to select an option. (same options as before:
  10. 80 / 200 / 500 / 2000 / unlimited);
  11. * WARNING: 'Datalist' is a HTML5 tag; If your browser is not HTML5
  12. compliant, the options will not be displayed (but it is possible for
  13. user to select manually a value);
  14. See browser Support: http://www.w3schools.com/tags/tag_datalist.asp
  15. Usage
  16. -----
  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. The display of the datalist input can be different depending of the browser.
  20. * FireFox Display:
  21. .. image:: web_listview_custom_element_number/static/src/img/screnshot_firefox.png
  22. * Chrome Display:
  23. .. image:: web_listview_custom_element_number/static/src/img/screnshot_chrome.png
  24. Limits / Roadmap
  25. ================
  26. * When pressing Esc key, it could be user friendly to return to the previous
  27. state (before editing the quantity).
  28. Bug Tracker
  29. ===========
  30. Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
  31. In case of trouble, please check there if your issue has already been reported.
  32. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  33. `here <https://github.com/OCA/web/issues/new?body=module:%20web_listview_custom_element_number%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  34. Credits
  35. =======
  36. Contributors
  37. ------------
  38. * Sylvain LE GAL (https://twitter.com/legalsylvain)
  39. Maintainer
  40. ----------
  41. .. image:: http://odoo-community.org/logo.png
  42. :alt: Odoo Community Association
  43. :target: http://odoo-community.org
  44. This module is maintained by the OCA.
  45. OCA, or the Odoo Community Association, is a nonprofit organization whose
  46. mission is to support the collaborative development of Odoo features and
  47. promote its widespread use.
  48. To contribute to this module, please visit http://odoo-community.org.