[FIX] __debug__ key wrongly set in QWeb default_dict

bzr revid: fme@openerp.com-20121121144320-mzgynprxpq1jlxey
This commit is contained in:
Fabien Meghazi 2012-11-21 15:43:20 +01:00
parent 4b007e1521
commit 9f9a2996f6
1 changed files with 1 additions and 1 deletions

View File

@ -543,12 +543,12 @@ instance.web._lt = function (s) {
return {toString: function () { return instance.web._t(s); }}
};
instance.web.qweb = new QWeb2.Engine();
instance.web.qweb.default_dict['__debug__'] = instance.session.debug; // Which one ?
instance.web.qweb.debug = instance.session.debug;
instance.web.qweb.default_dict = {
'_' : _,
'_t' : instance.web._t,
'JSON': JSON,
'__debug__': instance.session.debug,
};
instance.web.qweb.preprocess_node = function() {
// Note that 'this' is the Qweb Node