details: /erp/devel/pi/rev/a817f6dda06a
changeset: 12168:a817f6dda06a
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Fri May 13 16:58:01 2011 +0200
summary: fixed bug 17086: Sales Invoice does not complete via lines
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
| 25 ++++++---
1 files changed, 16 insertions(+), 9 deletions(-)
diffs (36 lines):
diff -r ea10238a0d4b -r a817f6dda06a
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
Fri May 13 13:34:30 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
Fri May 13 16:58:01 2011 +0200
@@ -91,16 +91,23 @@
closeProcessPopup: function(newWindow) {
//Keep current view for the callback function. Refresh and look for tab
message.
var contextView = OB.ActionButton.executingProcess.contextView,
- currentView = this.view;
+ currentView = this.view,
+ afterRefresh = function(){
+ // Refresh current view, taking the message set in the process'
context view
+ currentView.getTabMessage(contextView.tabId);
+ currentView.toolBar.refreshCustomButtons();
+
+ // Refresh in order to show possible new records
+ currentView.refresh();
+ };
- currentView.refreshCurrentRecord(function(){
- // Refresh current view, taking the message set in the process'
context view
- currentView.getTabMessage(contextView.tabId);
- currentView.toolBar.refreshCustomButtons();
-
- // Refresh in order to show possible new records
- currentView.refresh();
- });
+ if (currentView.getSelectedRecord()) {
+ // There is a record selected, refresh it and its parent
+ currentView.refreshCurrentRecord(afterRefresh);
+ } else {
+ // No record selected, refresh parent
+ currentView.refreshParentRecord(afterRefresh);
+ }
OB.ActionButton.executingProcess = null;
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits