Odoo Help

Welcome!

This community 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.

0

Invalid template id / QWebTemplateNotFound

By
Fred Cruypennick
on 10/6/15, 3:12 AM 598 views

Hello,

We have a strange issue when we change the state of an invoice or quotation to draft => send.

Odoo origine/8.0 

Traceback (most recent call last):

 File "/home/odoo/odoo/openerp/http.py", line 537, in _handle_exception 
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/odoo/openerp/http.py", line 574, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/odoo/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/odoo/openerp/http.py", line 307, in checked_call
return self.endpoint(*a, **kw)
File "/home/odoo/odoo/openerp/http.py", line 803, in __call__
return self.method(*args, **kw)
File "/home/odoo/odoo/openerp/http.py", line 403, in response_wrap
response = f(*args, **kw)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 948, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 940, in _call_kw
return checked_call(request.db, *args, **kwargs)
File "/home/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 939, in checked_call
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/home/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/odoo/openerp/models.py", line 3143, in read
result = BaseModel.read(records, fields, load=load)
File "/home/odoo/odoo/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/home/odoo/odoo/openerp/models.py", line 3178, in read
self._read_from_database(stored, inherited)
File "/home/odoo/odoo/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/home/odoo/odoo/openerp/models.py", line 3357, in _read_from_database
res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result)
File "/home/odoo/odoo/openerp/osv/fields.py", line 1454, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/odoo/odoo/addons/portal_sale/portal_sale.py", line 91, in <lambda>
_payment_block_proxy = lambda self, *a, **kw: self._portal_payment_block(*a, **kw)
File "/home/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/odoo/addons/portal_sale/portal_sale.py", line 104, in _portal_payment_block
partner_id=this.partner_id.id, company_id=this.company_id.id, context=context)
File "/home/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/odoo/addons/payment/models/payment_acquirer.py", line 299, in render_payment_block
context)
File "/home/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/odoo/addons/payment/models/payment_acquirer.py", line 271, 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/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/odoo/addons/website/models/ir_ui_view.py", line 172, in render
return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
File "/home/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1017, in render
return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
File "/home/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 262, in render
return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
File "/home/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 193, in get_template
raise_qweb_exception(QWebTemplateNotFound, message="Loader could not find template %r" % name, template=origin_template)
File "/home/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 191, in get_template
xml_doc = qwebcontext.loader(name)
File "/home/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1015, in loader
return self.read_template(cr, uid, name, context=context)
File "/home/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "<string>", line 2, in read_template
File "/home/odoo/odoo/openerp/tools/cache.py", line 122, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/home/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 844, in read_template
raise ValueError('Invalid template id: %r' % (xml_id,))
QWebTemplateNotFound: Invalid template id: u''


Are anyone able to help us debuging this issue please? Thank you

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/6/15, 3:12 AM
Seen: 598 times
Last updated: 10/6/15, 3:18 AM