odoo/addons/report_webkit_sample/report/report_webkit_html.py

20 lines
665 B
Python

import time
from report import report_sxw
from osv import osv
class report_webkit_html(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(report_webkit_html, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
'cr':cr,
'uid': uid,
})
report_sxw.report_sxw('report.webkitaccount.invoice',
'account.invoice',
'addons/report_webkit_sample/report/report_webkit_html.mako',
parser=report_webkit_html)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: