[IMP] QWeb: set template information on template not found exception
bzr revid: fme@openerp.com-20131217135618-0l1emdsz6brviosm
This commit is contained in:
@@ -206,7 +206,9 @@ class QWeb(orm.AbstractModel):
|
||||
if name in context.templates:
|
||||
return context.templates[name]
|
||||
|
||||
raise KeyError('qweb: template "%s" not found' % name)
|
||||
e = KeyError('qweb: template "%s" not found' % name)
|
||||
setattr(e, 'qweb_template', name)
|
||||
raise e
|
||||
|
||||
def eval(self, expr, v):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user