Odoo Help


Error webkit report: 'Undefined' object is not callable

on 8/13/15, 2:16 AM 410 views


import time

from report import report_sxw

from osv import osv

class psale(report_sxw.rml_parse):

def __init__(self, cr, uid, name, context=None):

super(psale, self).__init__(cr, uid, name, context=context)


'time': time,


'uid': uid,

'getname': self._getname,


self.context = context

def _getname(self,section_id):

sql="select res.name from res_users as res,crm_case_section as ccs \

where res.id=ccs.user_id and ccs.id=%d" %(section_id)


return self.cr.fetchall()



'addons/lunch/sale_report/sale_report.mako', parser=psale,




<% tb=getname(usr.section_id) %>



too, import sale_report  in __init__.py  , restart server

please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/13/15, 2:16 AM
Seen: 410 times
Last updated: 8/13/15, 2:16 AM