[IMP] Add underscore ( '_' ) lib in default rendering context of the qweb instance used in the webclient
bzr revid: fme@openerp.com-20111026082543-xsnfh298e0wb0ccw
This commit is contained in:
parent
a6d52f887b
commit
692293d31b
|
@ -1046,6 +1046,9 @@ openerp.web.TranslationDataBase = openerp.web.Class.extend(/** @lends openerp.we
|
|||
openerp.web._t = new openerp.web.TranslationDataBase().build_translation_function();
|
||||
openerp.web.qweb = new QWeb2.Engine();
|
||||
openerp.web.qweb.debug = (window.location.search.indexOf('?debug') !== -1);
|
||||
openerp.web.qweb.default_dict = {
|
||||
'_' : _
|
||||
}
|
||||
openerp.web.qweb.format_text_node = function(s) {
|
||||
// Note that 'this' is the Qweb Node of the text
|
||||
var translation = this.node.parentNode.attributes['t-translation'];
|
||||
|
|
Loading…
Reference in New Issue