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.

51 lines
1.9 KiB

  1. # -*- coding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # OpenERP, Open Source Management Solution
  5. # This module copyright (C) 2014 Therp BV (<http://therp.nl>).
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as
  9. # published by the Free Software Foundation, either version 3 of the
  10. # License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. ##############################################################################
  21. {
  22. "name": "Show images in tree views",
  23. "version": "1.0",
  24. "author": "Therp BV",
  25. "description": """\
  26. This module defines a tree image widget, to be used with function fields of
  27. type character. Use widget='tree_image' in your view definition. Optionally, set
  28. a 'height' tag. Default height is 16px.
  29. The content of the field can be any of the following:
  30. * the absolute or relative location of an image. For example, \
  31. "/<module>/static/src/img/youricon.png"
  32. * a standard icon from the web distribution, without path or extension, For \
  33. example, 'gtk-open'
  34. * A dynamic image in a data url base 64 format. To show a regular image field \
  35. from the model, use a function field wrapper that retrieves the image with \
  36. bin_size=False in the context, and prefix with 'data:image/png;base64,'
  37. """,
  38. 'depends': [
  39. 'web',
  40. ],
  41. 'qweb': [
  42. 'static/src/xml/widget.xml',
  43. ],
  44. 'data': [
  45. 'view/assets.xml',
  46. ],
  47. }