Odoo Help


What does "QWebTemplateNotFound: Invalid template id: " mean and how do I fix it?

on 8/6/14, 3:29 PM 1,418 views

OpenERP Server Error
Traceback (most recent call last):
  File "/home/odoo/src/odoo/saas-5/openerp/http.py", line 462, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/saas-5/openerp/http.py", line 481, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/saas-5/openerp/http.py", line 297, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-5/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-5/openerp/http.py", line 294, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/saas-5/openerp/http.py", line 671, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/saas-5/openerp/http.py", line 346, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/odoo/saas-5/addons/web/controllers/main.py", line 1046, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/src/odoo/saas-5/addons/web/controllers/main.py", line 1029, in _call_kw
    records = getattr(request.session.model(model), method)(*args, **kwargs)
  File "/home/odoo/src/odoo/saas-5/openerp/http.py", line 773, in proxy
    result = meth(cr, request.uid, *args, **kw)
  File "/home/odoo/src/odoo/saas-5/openerp/osv/orm.py", line 3341, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/odoo/src/odoo/saas-5/openerp/osv/orm.py", line 3459, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/home/odoo/src/odoo/saas-5/openerp/osv/fields.py", line 1272, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/home/odoo/src/odoo/saas-5/addons/portal_sale/portal_sale.py", line 29, in <lambda>
    _payment_block_proxy = lambda self, *a, **kw: self._portal_payment_block(*a, **kw)
  File "/home/odoo/src/odoo/saas-5/addons/portal_sale/portal_sale.py", line 42, in _portal_payment_block
    partner_id=this.partner_id.id, company_id=this.company_id.id, context=context)
  File "/home/odoo/src/odoo/saas-5/addons/payment/models/payment_acquirer.py", line 296, in render_payment_block
  File "/home/odoo/src/odoo/saas-5/addons/payment/models/payment_acquirer.py", line 268, in render
    return self.pool['ir.ui.view'].render(cr, uid, acquirer.view_template_id.xml_id, qweb_context, engine='ir.qweb', context=context)
  File "/home/odoo/src/odoo/saas-5/addons/website/models/ir_ui_view.py", line 169, in render
    return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
  File "/home/odoo/src/odoo/saas-5/openerp/addons/base/ir/ir_ui_view.py", line 992, in render
    return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
  File "/home/odoo/src/odoo/saas-5/openerp/addons/base/ir/ir_qweb.py", line 243, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
  File "/home/odoo/src/odoo/saas-5/openerp/addons/base/ir/ir_qweb.py", line 183, in get_template
    raise_qweb_exception(QWebTemplateNotFound, message="Loader could not find template %r" % name, template=origin_template)
  File "/home/odoo/src/odoo/saas-5/openerp/addons/base/ir/ir_qweb.py", line 181, in get_template
    xml_doc = qwebcontext.loader(name)
  File "/home/odoo/src/odoo/saas-5/openerp/addons/base/ir/ir_ui_view.py", line 990, in loader
    return self.read_template(cr, uid, name, context=context)
  File "/home/odoo/src/odoo/saas-5/openerp/tools/cache.py", line 21, in lookup
    r = self.lookup(self2, cr, *args, **argv)
  File "/home/odoo/src/odoo/saas-5/openerp/tools/cache.py", line 86, in lookup
    value = d[key] = self.method(self2, cr, *args, **argv)
  File "/home/odoo/src/odoo/saas-5/openerp/addons/base/ir/ir_ui_view.py", line 839, in read_template
    raise ValueError('Invalid template id: %r' % (xml_id,))
QWebTemplateNotFound: Invalid template id: ''


plz, paste your code for more information.

Bharat Parmar (bhp)
on 2/6/17, 11:54 PM
Mind And Go
On 8/6/14, 3:32 PM


The name of your issue is not relevant

Precise the release, the commit, etc..


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/6/14, 3:29 PM
Seen: 1418 times
Last updated: 2/6/17, 4:16 PM