Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Jasperserver openerp 7, The simplest way How-to

By
Oscar Cascante F
on 11/1/13, 2:59 PM 1,131 views

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!!

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 11/1/13, 2:59 PM
Seen: 1131 times
Last updated: 3/16/15, 8:10 AM