Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029971Openbravo ERP09. Financial managementpublic2015-05-22 09:372015-05-22 09:39
alostale 
Triage Omni OMS 
immediateminoralways
newopen 
5
 
 
Core
Production - Confirmed Stable
2014-11-14
3.0PR15Q1
http://code.openbravo.com/erp/devel/pi/rev/84865a340443fbc6aa5c36d777c8c57df2f6525b [^]
No
0029971: modify payment plan process doesn't refresh payment plan grid
When modifying a payment plan it is possible to add remove existing payment plan records through the process, when the process is completed payment plan grid is not automatically refreshed (it only refreshes the selected record the process was invoked from).

This causes not to see new payments and to continue seeing obsolete ones.
* As System Administrator, display "Modify Payment Plan" button in Payment Plan tab of Sales Invoice window
* As Group Admin, Create new Sales Invoice document. Add line and process
* Go to Payment Plan tab and click on "Modify Payment Plan" button
* Add a new payment and submit
  -> the new payment is not seen in Payment Plan tab till this grid is manually refreshed
As per design grid refresh after executing processes was changed to improve performance (see issue 0025811) because in the common case processes only modify selected record and not other ones in the same tab.

It is possible to preserve all behavior (refresh the whole grid after process completion) as described here [1] using refreshGrid response action.

Find attached the code that makes this happen. It needs to be reviewed to check which are the cases that require the grid to be refreshed.

[1] http://wiki.openbravo.com/wiki/How_to_create_a_Standard_Process_Definition#Returning_Several_Actions [^]
No tags attached.
diff 29971.diff (1,615) 2015-05-22 09:38
https://issues.openbravo.com/file_download.php?file_id=8111&type=bug
Issue History
2015-05-22 09:37alostaleNew Issue
2015-05-22 09:37alostaleAssigned To => Triage Finance
2015-05-22 09:37alostaleModules => Core
2015-05-22 09:37alostaleRegression level => Production - Confirmed Stable
2015-05-22 09:37alostaleRegression date => 2014-11-14
2015-05-22 09:37alostaleRegression introduced in release => 3.0PR15Q1
2015-05-22 09:37alostaleRegression introduced by commit => http://code.openbravo.com/erp/devel/pi/rev/84865a340443fbc6aa5c36d777c8c57df2f6525b [^]
2015-05-22 09:37alostaleTriggers an Emergency Pack => No
2015-05-22 09:38alostaleFile Added: 29971.diff
2015-05-22 09:39alostaleNote Added: 0077651

Notes
(0077651)
alostale   
2015-05-22 09:39   
Related to this (maybe to be reported as a different issue):

ModifyPaymentPlanActionHandler is returning the whole json request, is this required at all?