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.

95 lines
2.9 KiB

  1. # -*- coding: utf-8 -*-
  2. #
  3. #
  4. # Authors: Guewen Baconnier
  5. # Copyright 2015 Camptocamp SA
  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. {'name': 'SQL Views',
  22. 'version': '1.0',
  23. 'author': 'Camptocamp,Odoo Community Association (OCA)',
  24. 'license': 'AGPL-3',
  25. 'category': 'Tools',
  26. 'depends': ['base'],
  27. 'description': """
  28. =========
  29. SQL Views
  30. =========
  31. This addon allows to create SQL views on the database. It also features
  32. a simple CSV export of the views to check their result.
  33. Usage
  34. =====
  35. To create new SQL views, you need to go to ``Settings > Technical >
  36. Database Structure > SQL Views``.
  37. Give a view a human name, a SQL name (which will be prefixed with
  38. ``sql_view_`` in the database, and the definition of the view itself
  39. (without trailing semicolon).
  40. Known issues / Roadmap
  41. ======================
  42. The CSV preview can be used to read any data on the database. So this
  43. menu **must** be accessible only by allowed admin users. By
  44. default, the module is configured to be accessible only by users having
  45. the ``Settings`` administration level.
  46. Bug Tracker
  47. ===========
  48. Bugs are tracked on `GitHub Issues
  49. <https://github.com/OCA/server-tools/issues>`_.
  50. In case of trouble, please check there if your issue has already been reported.
  51. If you spotted it first, help us smashing it by providing a detailed and
  52. welcomed feedback
  53. `here
  54. <https://github.com/OCA/server-tools/issues/new?body=module:%20sql_view%0Aversion:%207.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  55. Credits
  56. =======
  57. Contributors
  58. ------------
  59. * Guewen Baconnier <guewen.baconnier@camptocamp.com>
  60. Maintainer
  61. ----------
  62. .. image:: https://odoo-community.org/logo.png
  63. :alt: Odoo Community Association
  64. :target: https://odoo-community.org
  65. This module is maintained by the OCA.
  66. OCA, or the Odoo Community Association, is a nonprofit organization whose
  67. mission is to support the collaborative development of Odoo features and
  68. promote its widespread use.
  69. To contribute to this module, please visit http://odoo-community.org.
  70. """,
  71. 'website': 'http://www.camptocamp.com',
  72. 'external_dependencies': {'python': ['unicodecsv']},
  73. 'data': ['wizards/sql_view_csv_preview_views.xml',
  74. 'views/sql_view_views.xml',
  75. 'security/ir.model.access.csv',
  76. ],
  77. 'installable': True,
  78. }