Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4486 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 20
15854
1
ส.ค. 15
4806
3
ส.ค. 15
14200
5
มิ.ย. 15
24409
3
ส.ค. 19
10008