Pentaho Reporting for OpenERPIntroductionThis tools is really cool and one of my favourites. Pentaho, written in Java, is very powerful tool and can be used along with OpenERP. Pentaho's approach is useful for general reporting or for reports created by the final user (self service reporting). For complex reports with charts, cross linking and scripting facilities, the Pentaho Report Designer is used and is the reporting engine integrated in Pentaho Business Intelligence. Other excellent reporting tools that can be used in Pentaho are Jasper Reports by JasperSoft and Eclipse BIRT by Actuate. They are both excellent and well known tools, but Pentaho Report Designer has the advantage to be more integrated and easily deployable in Pentaho solutions. Pentaho has a built in report designer and enables you to extract records dynamically from an OpenERP database. If you are an OpenERP module developer, I would recommend installing this tool anyway, as it allows you to view all objects in an OpenERP database and all fields and relationships. This has saved me hours trying other methods to identify field names and relationships within the OpenERP database. The Pentaho OpenERP module allows you to integrate and print reports which have been created using the Pentaho report designer. The Pentaho Java Print server needs to be installed. Details if how to install this are also included below. Disclaimer: These details below are my own notes, based on installations I have done. These notes are not endorsed by the developers of Pentaho or OpenERP in any way. These notes may be incomplete so please use them with caution and at your own risk. Setting up Pentaho Reporting for OpenERP 7.0(For the demo below to work you'll need to install the sales and manufacturing modules installed in OpenERP 7.0 - with demo data!)Step 1 - Install PentahoDownload an install Pentaho reports from their website here ->: Step2 - Learn Pentaho
Step 3 - Install for OpenERP connection and connection to an OpenERP Database
Step 4 - Create the 1st Query as the main report A query is created with all the fields required for the report. Step 5 - Create a 2nd Query for the Filter in the Drop down menus for interactive reporting This step creates a filter for the first query, in the form of a drop-down box. The drop-down box offers the user to select one manufacturing order which can then printed. This is a similar process as with the example exercise (as mentioned in step 2. The main difference is that the database connection to OpenERP is different to the JDBC example. You'll need to create a second query for the drop-down menu in the same way as the example exercise. To do this right-click the database (yellow database symbol) and create a new connection as follows:
Select the Search Field tab and in the left-hand pane scroll down until you see the name field. This is the Production Order name which looks like this MO/00043 Drag that across to the right hand pane and change the name of the field name to something more descriptive. This doesn't change the name of the database field but just changes the reference name from within Pentaho. Press OK That's it! The second query has now been created. Step 6 - Creating a the drop-down menuPlace the cursor over the second query called ProdOrderQuery, then click the icon 'add new master report parameters'.
In the 'Prompt' Section
Press OK Step 8 - Linking everything togetherNow we'll link the Drop-Down menu, Query 1 and Query 2 (the filter) together. Goto the filters tab
Step 8 - Running the report
Now the user interface is working the next step is to get a more elegant presentation of the report (see examples in section below) Here is my final Pentaho example -> Demo File that you can load into your own Pentaho. It's important that you have the sales and manufacturing modules installed with demo data for this example to work. SummaryAs a summary, below is a model which depicts how the two queries and the Drop-Down menu are related. The first query is used to create the main report. You can see all the fields that will be used. The second query merely is used within the drop-down list and acts as a filter. The drop down list is created an associated to the second query. The name of the drop-down list is entered in the 1st query as a filer. Values displayed in the drop-down list are first populated and the user will be prompted to select one record drop down list. The results of the 1st query are then displayed. (Click on Image to enlarge) Installing and Configuration of the Pentaho Java Print ServerThis section explains how to install and config the Pentaho Java Print server on an Ubuntu 12.04 LTS server. This is necessary if you want to print reports directly within OpenERP. Printing Pentaho Reports from within OpenERP 7.0This section explains how to embedd the Pentaho report created with the Pentaho report designer directly in OpenERP Example Forms Created using Pentaho:Refs:
Sample Reports:
Video regarding Pentaho sub-reports
Background info: General Tutorial: Just search for Pentaho Tutorial and you'll find many excellent resources and videos like these: Even though not related to OpenERP application, this is a well structured Pentaho tutorial in German which give some general overview of the workflow capabiltiies: OpenERP object input: OpenERP object Output: |
Welcome to BACON:CONSULT > Services > odoo > Business Intelligence and Printing Reports in OpenERP >