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}