[FIX] qweb: wrong profiling result because the calls are not ordered

This commit is contained in:
Christophe Matthieu
2016-08-29 10:33:02 +02:00
parent be3fbd20e2
commit 4fd99a9aae
+3
View File
@@ -273,7 +273,10 @@ class QWeb(object):
astmod = self._base_module()
try:
body = self._compile_node(element, _options)
ast_calls = _options['ast_calls']
_options['ast_calls'] = []
def_name = self._create_def(_options, body, prefix='template_%s' % name.replace('.', '_'))
_options['ast_calls'] += ast_calls
except QWebException, e:
raise e
except Exception, e: