My report file contains
class AccountInvoice_Report(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(AccountInvoice_Report, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
'cr':cr,
'uid': uid,
'get_address': self.get_address,
})
and I have written get_address function. when i call that function in my mako file as
<% get_address() %>
Then it gives Error as
File "memory:0xb23c67ccL", line 208, in render_body
<% get_address()%>
TypeError: 'Undefined' object is not callable
What mistake I am doing file defining or calling the function.