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.

55 lines
2.0 KiB

10 years ago
  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. # Snippet from https://github.com/hsd/listview_images
  8. # Copyright (C) 2013 Marcel van der Boom <marcel@hsdev.com>
  9. #
  10. # This program is free software: you can redistribute it and/or modify
  11. # it under the terms of the GNU Affero General Public License as
  12. # published by the Free Software Foundation, either version 3 of the
  13. # License, or (at your option) any later version.
  14. #
  15. # This program is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. # GNU Affero General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU Affero General Public License
  21. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. #
  23. ##############################################################################
  24. {
  25. "name": "Show images in tree views",
  26. "version": "1.0",
  27. "author": "Therp BV",
  28. "description": """\
  29. This module defines a tree image widget, to be used with either binary fields
  30. or (function) fields of type character. Use widget='tree_image' in your view
  31. definition. Optionally, set a 'height' tag. Default height is 16px.
  32. If you use the widget with a character field, the content of the field can be
  33. any of the following:
  34. * the absolute or relative location of an image. For example, \
  35. "/<module>/static/src/img/youricon.png"
  36. * a standard icon from the web distribution, without path or extension, For \
  37. example, 'gtk-open'
  38. * A dynamic image in a data url base 64 format. Prefix with \
  39. 'data:image/png;base64,'
  40. """,
  41. 'url': 'https://github.com/OCA/Web',
  42. 'depends': [
  43. 'web',
  44. ],
  45. 'qweb': [
  46. 'static/src/xml/widget.xml',
  47. ],
  48. 'data': [
  49. 'view/assets.xml',
  50. ],
  51. }