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.

101 lines
2.8 KiB

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