Module : quotation
quotation- __openerp__.py
'data': [
'quotation_report.xml'
],
quotation- quotation_report.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<report auto="False" id="report_quotation_sale" model="sale.order" name="sale.order"
rml="quotation_report/report/quotation_report.rml" string="Sales Quotation"
usage="default"/>
</data>
</openerp>
quotation- report -__init__.py
import quotation
quotation- report - quotation.py
import time
from openerp.report import report_sxw
from openerp.osv import osv
from openerp import pooler
class quotation_report(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context=None):
super(quotation_report, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
})
report_sxw.report_sxw('sale.order.rndU7tBJ','sale.order','addons/quotation_report/report/quotation_report.rml',parser=quotation_report, header="external")
quotation- report - quotation_report.rml
What was the error in my code? This rml is entirely different from sale quotation report, then how is displaying the same report.