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.

94 lines
2.8 KiB

10 years ago
  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://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. If you are a user
  20. -----------------
  21. You will be able to download XML reports from the *Print* menu found on form
  22. and list views.
  23. If you are a developer
  24. ----------------------
  25. To learn from an example, just check the `sample module`_.
  26. To develop with this module, you need to:
  27. * Create a module.
  28. * Make it depend on this one.
  29. * Follow `instructions to create reports`_ having in mind that the
  30. ``report_type`` field in your ``ir.actions.report.xml`` record must be
  31. ``qweb-xml``.
  32. In case you want to create a `custom report`_, the instructions remain the same
  33. as for HTML reports, and the method that you must override is also called
  34. ``render_html``, even when this time you are creating a XML report.
  35. You can make your custom report inherit ``report_xml.xsd_checked_report``, name
  36. it like your XML ``<template>`` id prepended by ``report.``, add a ``xsd()``
  37. method that returns a XSD in a string, and have XSD automatic checking for
  38. free.
  39. You can visit ``http://<server-address>/report/xml/<module.report_name>/<ids>``
  40. to see your XML report online as a web page.
  41. For further information, please visit:
  42. * https://www.odoo.com/forum/help-1
  43. * https://github.com/OCA/reporting-engine
  44. Credits
  45. =======
  46. * Icon taken from http://commons.wikimedia.org/wiki/File:Text-xml.svg.
  47. Contributors
  48. ------------
  49. * Jairo Llopis <j.llopis@grupoesoc.es>
  50. * Enric Tobella <etobella@creublanca.es>
  51. Maintainer
  52. ----------
  53. .. image:: https://odoo-community.org/logo.png
  54. :alt: Odoo Community Association
  55. :target: https://odoo-community.org
  56. This module is maintained by the OCA.
  57. OCA, or the Odoo Community Association, is a nonprofit organization whose
  58. mission is to support the collaborative development of Odoo features and
  59. promote its widespread use.
  60. To contribute to this module, please visit http://odoo-community.org.
  61. .. _custom report: https://www.odoo.com/documentation/8.0/reference/reports.html#custom-reports
  62. .. _instructions to create reports: https://www.odoo.com/documentation/8.0/reference/reports.html
  63. .. _reporting-engine: https://github.com/OCA/reporting-engine
  64. .. _sample module: https://github.com/OCA/reporting-engine/tree/8.0/report_xml_sample
  65. .. _lxml: http://lxml.de/