diff --git a/web/org.openbravo.mobile.core/source/component/ob-windowview.js b/web/org.openbravo.mobile.core/source/component/ob-windowview.js
--- a/web/org.openbravo.mobile.core/source/component/ob-windowview.js
+++ b/web/org.openbravo.mobile.core/source/component/ob-windowview.js
@@ -25,7 +25,7 @@
           callback();
           };
       var renderUI = function (callback) {
-          OB.UTIL.HookManager.executeHooks('ModelReady:' + this.name, null, function () {
+          OB.UTIL.HookManager.executeHooks('ModelReady:' + me.name, null, function () {
             OB.MobileApp.model.trigger('window:ready', this);
             var loginTimer = new Date().getTime() - window.localStorage.getItem('LOGINTIMER');
             OB.info("Total time since logged in: " + (loginTimer / 1000) + " seconds");
@@ -39,7 +39,7 @@
           if (this.init) {
             this.init();
           }
-          OB.UTIL.HookManager.executeHooks('ModelReady:' + this.name, null, function () {
+          OB.UTIL.HookManager.executeHooks('ModelReady:' + me.name, null, function () {
             OB.MobileApp.model.trigger('window:ready', this);
             var loginTimer = new Date().getTime() - window.localStorage.getItem('LOGINTIMER');
             OB.info("Total time since logged in: " + (loginTimer / 1000) + " seconds");
