diff --git a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js
@@ -334,9 +334,9 @@
   // when a tab is drawn the first time it steals the focus 
   // from the active view, prevent this
   focus: function () {
-    if(this.parentElement.tabSet.tabPicker){
-	  this.pane.setAsActiveView();
-	} 
+    if (this.parentElement.tabSet.tabPicker) {
+      this.pane.setAsActiveView();
+    }
     if (this.pane.isActiveView && this.pane.isActiveView()) {
       this.Super('focus', arguments);
     }
