Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4294 Visualizzazioni

Hello,

I would like to share this way to call a jasper report, from openerp 7 using http:

1- Execute the report that you want to include in openerp, from jasperserver and copy the url show in your browser.

2- Create a button or function in openerp code:

def report1(self, cr, uid, ids, context=None): if context is None: context = {}

    url = <urlcopiedfromexecute>&j_username=jasperadmin&j_password=jasperadmin" <- "here you can change your username and password"
    return {
        'type' : 'ir.actions.act_url',
        'url' : url,
        'target' : 'new',
    }

Hope this help!!

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 20
15596
1
ago 15
4600
3
ago 15
14003
5
giu 15
24207
3
ago 19
9850