from openerp.osv import osv
from openerp.report import report_sxw
class invoice_timesheet_report(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(invoice_timesheet_report, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'get_line_detail': self.get_line_detail,
})
self.context = context
self.total_byinvoice = 0.0
def get_byinvoive_total(self):
return self.total_byinvoice
in report.xml
<tr class="border-black" style="border-bottom: 1px solid black">
<td><strong><span t-esc="get_byinvoice_total()" /></strong></td>
</tr>
while running report i got an error
.....
....
QWebException: "'NoneType' object is not callable" while evaluating
'get_byinvoice_total()'
I could have been the mis-spelling: def get_byinvoive_total(self):