Hello iibeas,
Thanks for the response. But I am still getting an error while running my report, although a different one -
Start tag expected, \'<\' not found, line 1, column 1\n\n(<class \'lxml.etree.XMLSyntaxError\'>, XMLSyntaxError(u"Start tag expected, \'<\' not found, line 1, column 1",)
The opd_receipt.py file is -
Code:
import time
from report import report_sxw
from osv import osv
class opd_receipt(report_sxw.rml_parse):
#_name = 'report.hospital.opd'
def __init__(self, cr, uid, name, context):
super(opd_receipt, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
})
report_sxw.report_sxw('report.hospital.opd', 'hospital.opd', 'addons/hospital/report/opd_receipt.rml', parser=opd_receipt)
The hospital_report.xml file is -
Code:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<report
id="report_hospital_print"
string="Print OPD"
model="hospital.opd"
name="hospital.opd"
rml="hospital/report/opd_receipt.rml"
auto="False"/>
</data>
</openerp>
Am I missing something? Maybe it isn't related to this post but previously I was getting the 'key error' & then I went through a lot of posts & Launchpad for 'naming conventions', made a few changes to values in fields & now I get this error.
Any help or pointer would be really helpful. Thanks.