Skip to Content
Menu
This question has been flagged
1350 Views

Hello everyone,

i create a report in iReport tool and create a function in python for print iReport jrxml file from odoo. But when i am trying to printout jrxml this error is showing. Please help me what should i do?


here is function for print jrxml file

class PurchaseRequisition(models.Model):
_inherit = "purchase.requisition"

@api.multi
def print_jasper_purchase_requisition(self):
data = {}
data['model'] = 'purchase.requisition'
data['ids'] = self._context.get('params').get('id')
data['origin_records'] = False
data.update({'parameters':
{'report_title': "Purchase Requisition",
'mr_no': 'self.name'}})
return {'type': 'ir.actions.report.xml',
'report_name': 'purchase.requisition',
'datas': data}
Avatar
Discard
Related Posts Replies Views Activity
2
May 18
7526
0
Mar 15
2667
0
Mar 15
3377
2
May 18
11992
0
Mar 15
3154