Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3726 Widoki

I've done everything the same way as in the "normal" RML reports but I can't get the jasper reports to become saved and attached to the records.

I've even redefined them (the reports) in the "jasper reports" option but to the same no result.

Is this a bug? Has anyone been able to create attachments out of jasper reports?

 

;)

Awatar
Odrzuć
Najlepsza odpowiedź

JasperReports works quite fine - even with attachments. Can you tell me what Odoo version you use and what JasperReports Addon?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Version: OpenERP 7

OS: Ubuntu 12.04.4 LTS

Addons: jasper_server (7.0.6.3), jasper_reports (7.0.0.1.1)

 

Here's a sample of a report definition:

<report
            auto="False"
            id="account.invoice2"
            model="account.invoice"
            name="account.invoice2"
            rml="xpto_invoice_report/report/xpto_invoice.jrxml"
            string="Invoices"
            attachment="(object.hash != False and ((object.name or '').replace('/','') + '.pdf'))"
            attachment_use="True"
            usage="default"
            menu="False"
            />

Cheers!

Awatar
Odrzuć