OCA reporting engine fork for dev and update.
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.

90 lines
2.8 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ===========
  5. XML Reports
  6. ===========
  7. This module was written to extend the functionality of the reporting engine to
  8. support XML reports and allow modules to generate them by code or by QWeb
  9. templates.
  10. Installation
  11. ============
  12. To install this module, you need to:
  13. * Install lxml_ in Odoo's ``$PYTHONPATH``.
  14. * Install the repository `reporting-engine`_.
  15. But this module does nothing for the end user by itself, so if you have it
  16. installed it's probably because there is another module that depends on it.
  17. Usage
  18. =====
  19. This module is intended as a base engine for other modules to use it, so no direct result if you are a user.
  20. If you are a developer
  21. ----------------------
  22. To learn from an example, just check the `sample module`_.
  23. To develop with this module, you need to:
  24. * Create a module.
  25. * Make it depend on this one.
  26. * Follow `instructions to create reports`_ having in mind that the
  27. ``report_type`` field in your ``ir.actions.report.xml`` record must be
  28. ``qweb-xml``.
  29. In case you want to create a `custom report`_, the instructions remain the same
  30. as for HTML reports, and the method that you must override is also called
  31. ``render_html``, even when this time you are creating a XML report.
  32. You can make your custom report inherit ``report_xml.xsd_checked_report``, name
  33. it like your XML ``<template>`` id prepended by ``report.``, add a ``xsd()``
  34. method that returns a XSD in a string, and have XSD automatic checking for
  35. free.
  36. You can visit ``http://<server-address>/report/xml/<module.report_name>/<ids>``
  37. to see your XML report online as a web page.
  38. For further information, please visit:
  39. * https://www.odoo.com/forum/help-1
  40. * https://github.com/OCA/reporting-engine
  41. Credits
  42. =======
  43. * Icon taken from http://commons.wikimedia.org/wiki/File:Text-xml.svg.
  44. Contributors
  45. ------------
  46. * Jairo Llopis <j.llopis@grupoesoc.es>
  47. * Enric Tobella <etobella@creublanca.es>
  48. Maintainer
  49. ----------
  50. .. image:: https://odoo-community.org/logo.png
  51. :alt: Odoo Community Association
  52. :target: https://odoo-community.org
  53. This module is maintained by the OCA.
  54. OCA, or the Odoo Community Association, is a nonprofit organization whose
  55. mission is to support the collaborative development of Odoo features and
  56. promote its widespread use.
  57. To contribute to this module, please visit https://odoo-community.org.
  58. .. _custom report: https://www.odoo.com/documentation/8.0/reference/reports.html#custom-reports
  59. .. _instructions to create reports: https://www.odoo.com/documentation/8.0/reference/reports.html
  60. .. _reporting-engine: https://github.com/OCA/reporting-engine
  61. .. _sample module: https://github.com/OCA/reporting-engine/tree/8.0/report_xml_sample
  62. .. _lxml: http://lxml.de/