Skip to main content

Allow users to set manually a quantity of items to display in a tree view

Project description

License: AGPL-3

Allow users to set manually a quantity of items to display in a tree view

This module extends the functionality of web module, to improve list views and to allow users to display custom quantity of items.

(By default, in Odoo, user can only display 80 / 200 / 500 / 2000 elements in a tree view)

Usage

To use this module, you need to:

  1. Go to a list view

  2. Click on the item ‘1 - 80 of xxx’

  3. Tip a custom quantity of item you want to see, and then press return

Sample for res.partner model with a limit of 3:

./web_listview_custom_element_number/static/src/img/screnshot_partner_limit.png Try me on Runbot

Technical information

  • Replace a select element by an input with datalist option. That allows to set a custom value, or to select an option. (same options as before: 80 / 200 / 500 / 2000 / unlimited);

  • WARNING: ‘Datalist’ is a HTML5 tag; If your browser is not HTML5 compliant, the options will not be displayed (but it is possible for user to select manually a value); See browser Support: http://www.w3schools.com/tags/tag_datalist.asp

  • The display of the datalist input can be different depending of the browser.

    • FireFox Display:

      ./web_listview_custom_element_number/static/src/img/screnshot_firefox.png
    • Chrome Display:

      ./web_listview_custom_element_number/static/src/img/screnshot_chrome.png

Known issues / Roadmap

  • When pressing Esc key, it could be user friendly to return to the previous state (before editing the quantity).

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.

Credits

Contributors

Funders

The development of this module has been financially supported by:

Maintainer

Odoo Community Association

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file odoo9_addon_web_listview_custom_element_number-9.0.1.0.0.99.dev6-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo9_addon_web_listview_custom_element_number-9.0.1.0.0.99.dev6-py2-none-any.whl
Algorithm Hash digest
SHA256 27c04dc0f2539b8cae6de1f0e61c31c37d04c092f2d7fd1d7d2816b1dd24e209
MD5 416914912daf0049d9e1cf7d7e00ff0e
BLAKE2b-256 03c3ece24998660624f628be25f1d4ea541f35a2e47336ddefb99aaa7d4c1ece

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page