Related with issue 25811: When refreshing from form, dont refresh whole grid
authorAugusto Mauch <augusto.mauch@openbravo.com>
Tue, 11 Nov 2014 09:20:54 +0100
changeset 25265 b00aae95f22c
parent 25171 c6389ceb2f11
child 25266 dc5f7d2a708d
Related with issue 25811: When refreshing from form, dont refresh whole grid

If the user presses the Refresh toolbar button while in form view, the form will be refreshed, but not the whole grid.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js	Tue Nov 04 17:55:30 2014 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js	Tue Nov 11 09:20:54 2014 +0100
@@ -192,7 +192,11 @@
 
   REFRESH_BUTTON_PROPERTIES: {
     action: function () {
-      this.view.refresh();
+      if (this.view.isShowingForm) {
+        this.view.viewForm.refresh();
+      } else {
+        this.view.refresh();
+      }
     },
     disabled: false,
     buttonType: 'refresh',