From 8c53e967efbb6899b44dedf4b9a3d40ca33a5aa0 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 17 Jun 2015 11:09:52 +0200 Subject: [PATCH] Add module report_xml_sample. --- report_xml/README.rst | 29 +- report_xml_sample/README.rst | 69 + report_xml_sample/__init__.py | 19 + report_xml_sample/__openerp__.py | 36 + report_xml_sample/models.py | 39 + report_xml_sample/static/description/icon.png | Bin 0 -> 6825 bytes report_xml_sample/static/description/icon.svg | 3131 +++++++++++++++++ .../views/res_partner_templates.xml | 43 + report_xml_sample/xsd/sample_report.xsd | 22 + 9 files changed, 3380 insertions(+), 8 deletions(-) create mode 100644 report_xml_sample/README.rst create mode 100644 report_xml_sample/__init__.py create mode 100644 report_xml_sample/__openerp__.py create mode 100644 report_xml_sample/models.py create mode 100644 report_xml_sample/static/description/icon.png create mode 100644 report_xml_sample/static/description/icon.svg create mode 100644 report_xml_sample/views/res_partner_templates.xml create mode 100644 report_xml_sample/xsd/sample_report.xsd diff --git a/report_xml/README.rst b/report_xml/README.rst index 6849c1e2..564bedf3 100644 --- a/report_xml/README.rst +++ b/report_xml/README.rst @@ -16,6 +16,9 @@ To install this module, you need to: * Install lxml_ in Odoo's ``$PYTHONPATH``. * Install the repository `reporting-engine`_. +But this module does nothing for the end user by itself, so if you have it +installed it's probably because there is another module that depends on it. + Configuration ============= @@ -24,10 +27,18 @@ No manual configuration is needed. Usage ===== -This module is technical, so its usage instructions are intended for module -developers. +If you are a user +----------------- + +You will be able to download XML reports from the *Print* menu found on form +and list views. + +If you are a developer +---------------------- -To use this module, you need to: +To learn from an example, just check the `sample module`_. + +To develop with this module, you need to: * Create a module. * Make it depend on this one. @@ -39,11 +50,13 @@ In case you want to create a `custom report`_, the instructions remain the same as for HTML reports, and the method that you must override is also called ``render_html``, even when this time you are creating a XML report. -You can visit http:///report/xml// -to see your XML report online as a web page. +You can make your custom report inherit ``report_xml.xsd_checked_report``, name +it like your XML ``