subteno-it / openerp-jasperserver

OpenERP Report Engine : Interface JasperReport Server with OpenERP
6 stars 29 forks source link

Dynamic generated ir.actions.report.xml: the report_name (xml_id) is not predictable #11

Open BT-astauder opened 9 years ago

BT-astauder commented 9 years ago

I want to replace a existing RML report of the account/wizard/account_report_general_ledger.py with a jasper report. There the report is called with

        return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger', 'datas': data}

Because the reportname is generated dynamically with jasper.report{id} the report_name is different in each database. I suggest to introduce a new field in jasper.document with a name, that is used when existing as report_name.