IntroductionThis is quite quite easy to get running 'Out-the-Box' but needs quite a bit of fiddling around to build new reports working. As with all the print solutions, it depends on a print engine to convert and merge data into a form. It uses RML templates that are created in OpenOffice / OpenLibre Office as .sxv format documents. These are converted from .sxc to .rml files using a converter called SXW2RML. The RML files are used by OpenERP's report engine to combine data with the form which in turn creates the .pdf document. OpenOffice / OpenLibre requires a extension interface with the OpenERP reports. The plug-in is nicely provided by the module installation as a .zip file. https://doc.openerp.com/doc_static/6.0/_images/ooo_report_overview.png ![]() From the inside of OpenERP it looks like this : https://doc.openerp.com/doc_static/6.0/_images/process_ooo.png ![]() From within OpenOffice / Libre Office any of the existing reports can be extracted from OpenEPR where they can be edited and then 'sent' back to the server with the same name or a new name (but to the openerp database and not to the file system). The main challenge with this solution is getting your head around the graphics and code. You'll also need to understand Python. and creation of rml parsers to extract repeating child records, such as the BOM of a BOM component. But then all the other solutions I tested, also requires you get your head some degree of programming. In some cases I prefer just editing the raw .rml file directly (see details below), which is a bit like java script found in processing.org. Perhaps I'll build a graphical representation directly one day. But in many cases if only simple and small modification are required then this should be a solution to get you up and running quickly. In your template you must be sure to put also the text you will change, to format it to your needs. To use it in a django app, you can use the django template system placeholders like {{name}} or {{address}}. Then, save it and use Openerp SXW2RML to transform it to RML.
You can use python-trml2pdf to see the results: and then Some useful tags (ref:https://doc.openerp.com/v6.0/developer/3_11_reports/11_1_openoffice_report.html/) are:
Editing RML files in OpenERP 7 directlyIt is well worth considering editing the reports directly into the RML file. Admittedly it's not so easy to interpret what the form looks like, but for an advanced programmer this is usually easier (long term) and offers more flexibility. Read the following section for more details -> RML reports If you forget the openerp master or database password this is stored in the ~/.openerp_serverrc file or the openerp-server.config fileRefs & eBooks:
Videos: |
Welcome to BACON:CONSULT > Services > odoo > Business Intelligence and Printing Reports in OpenERP >