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.

72 lines
2.7 KiB

  1. # -*- encoding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # Web - Custom Element Number in ListView module for Odoo
  5. # Copyright (C) 2015-Today Akretion (http://www.akretion.com)
  6. # @author Sylvain LE GAL (https://twitter.com/legalsylvain)
  7. #
  8. # This program is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU Affero General Public License as
  10. # published by the Free Software Foundation, either version 3 of the
  11. # License, or (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU Affero General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Affero General Public License
  19. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. #
  21. ##############################################################################
  22. {
  23. 'name': 'Web - Custom Element Number in ListView',
  24. 'version': '1.0',
  25. 'category': 'web',
  26. 'description': """
  27. Allow users to set manually a quantity of items to display in a tree view
  28. =========================================================================
  29. Functionality:
  30. --------------
  31. * By default, in Odoo, user can display 80 / 200 / 500 / 2000 elements in
  32. a tree view;
  33. With that module, user can select a custom number of items to display;
  34. Technical information:
  35. ----------------------
  36. * replace a select element by an input with datalist option. That allows
  37. to set a custom value, or to select an option. (same options as before:
  38. 80 / 200 / 500 / 2000 / unlimited);
  39. * WARNING: 'Datalist' is a HTML5 tag; If your browser is not HTML5
  40. compliant, the options will not be displayed (but it is possible for
  41. user to select manually a value);
  42. See browser Support: http://www.w3schools.com/tags/tag_datalist.asp
  43. Roadmap:
  44. --------
  45. * When pressing Esc key, it could be user friendly to return to the
  46. previous state (before editing the quantity).
  47. Copyright, Author and Licence:
  48. ------------------------------
  49. * Copyright:
  50. * 2015-Today, Akretion;
  51. * Author:
  52. * Sylvain LE GAL (https://twitter.com/legalsylvain);
  53. * Licence: AGPL-3 (http://www.gnu.org/licenses/)""",
  54. 'author': "Akretion,Odoo Community Association (OCA)",
  55. 'website': 'http://www.grap.coop',
  56. 'license': 'AGPL-3',
  57. 'depends': [
  58. 'web',
  59. ],
  60. 'js': [
  61. 'static/src/js/web_listview_custom_element_number.js',
  62. ],
  63. 'css': [
  64. 'static/src/css/web_listview_custom_element_number.css',
  65. ],
  66. }