Comment 3 for bug 983015

Revision history for this message
Goran Cvijanović (goranc) wrote :

There is some changes in 6.1 which have to be resolved in code change from previous version to be compatible with new 6.1 version. To provide installable module on 6.1 version for jasper_server addon, here are changes in code:

jasper_document.py :
1. comment # include ir
2. replace:
   ir.ir_set(cr, uid, 'action', 'client_print_multi', doc.name, [doc.model_id.model], value, replace=False, isobject=True)
with:
self.pool.get('ir.model.data').ir_set(cr, uid, 'action', 'client_print_multi', doc.name, [doc.model_id.model], value, replace=False, isobject=True)
(or just remove ir. prefix)

3. As mentioned from Enapps : there is no 'object' field in ir.values, so comment 'object' = True args.

After that module will install in 6.1, and is working from desktop client.
From web client it is not working, you can't call the report, because of bug/934068

It is something with report_soap.py and line in method _jasper_execute:
cur_obj = self.model_obj.browse(self.cr, self.uid, ex, context=context)
error line: openerp.netsvc: 'NoneType' object has no attribute 'browse'
it is defined in __init__ as: self.model_obj = self.pool.get(self.model)

g.c.