Fixed issue 17202. Prevent wrong call to the FIC in SETSESSION mode when a new record is created in the grid.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Tue, 17 May 2011 19:02:06 +0200
changeset 12206 149e42c3f674
parent 12205 20e48a423ef9
child 12207 9c8382863b3b
Fixed issue 17202. Prevent wrong call to the FIC in SETSESSION mode when a new record is created in the grid.
The problem happened after a process was executed (specifically, after a Sales Order was completed, and when afterwards a new Sales Order was created on grid mode).
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js	Tue May 17 18:05:21 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js	Tue May 17 19:02:06 2011 +0200
@@ -1019,7 +1019,7 @@
     
     this.updateLastSelectedState();
     this.updateTabTitle();    
-    this.toolBar.updateButtonState(this.isEditingGrid || this.isShowingForm);
+    this.toolBar.updateButtonState(this.isEditingGrid || this.isShowingForm || this.viewForm.isNewRecord());
 
     var tabViewPane = null, i;