reportingodooopenerp-8

odoo / OpenERP V8 - Tutorial on QWeb Reports


I am trying to start with odoo. One of the most import thing for us would be to generate different layout for sale orders.

I've started with this document: https://github.com/odoo/odoodays-2014/blob/master/v8_reporting_engine/index.rst

It is from the "odoodays 2014" and shows how to customize an existing report. This works fine. I don't understand the points under "Generic / particular report".

Now I'm lost trying to add a new report (starting with a copy of the exisiting report) with a custom template. I've tried to add a new item in the report view in settings, but I can't add any linked qweb views (I've added a new one, but it didn't get a new ID).

I've tried to create a copy in the views directory of the addon but it didn't help.

Is there any tutorial for this ?

Is there somebody who can give me some pointers how to add a new report ?


Solution

  • After searching around I've come to this solution. I've translated all the menu headers from German, because I'm using Odoo in German.

    New reports are typically added with a plugin.

    If you would like to change the report with the website editor you can install the website builder. If you change one of the reports from PDF to HTML (in Settings / Reporting / Reports) you get a popup when you're generating the report.

    In this popup you can change the report template. With this you can change the template with the website builder tools.

    These reports are saved in the database in the table ir_ui_view. If you change to another database they still have the original reports (this was my big fear - that changing the reports changes them for all databases).

    Header and footer are still changed in the company settings with RDL.

    So basically everything from the odoodays-2014 document is working like they've showed on this website - it was just pretty hard to find out how these things worked.