diff --git a/web_translate_dialog_page/static/src/js/web_translate_dialog_page.js b/web_translate_dialog_page/static/src/js/web_translate_dialog_page.js index 9aee3941..d5e9b8c8 100644 --- a/web_translate_dialog_page/static/src/js/web_translate_dialog_page.js +++ b/web_translate_dialog_page/static/src/js/web_translate_dialog_page.js @@ -1,6 +1,7 @@ openerp.web_translate_dialog_page = function (openerp) { var _t = openerp.web._t; + var QWeb = openerp.web.qweb; openerp.web.PageView.include({ on_loaded: function(data) { @@ -54,7 +55,6 @@ openerp.web_translate_dialog_page = function (openerp) { }, start: function() { var self = this; - var QWeb = openerp.web.qweb; this._super(); $.when(this.languages_loaded).then(function() { self.$element.html(QWeb.render('TranslateDialogPage', { widget: self }));