跳至內容
選單
此問題已被標幟
4270 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
8月 20
15581
1
8月 15
4564
3
8月 15
13968
5
6月 15
24179
3
8月 19
9786