Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021869Openbravo ERPA. Platformpublic2012-10-05 11:402016-03-23 16:24
egoitz 
AugustoMauch 
urgentmajoralways
newopen 
5
3.0MP15 
 
Core
No
0021869: When unsing on the grid a default view different than the standard, two requests are done to the datasource
If you define a new view on a window and you set is a default, when accessing to the window two requests are done to the datasource.
The first with the standard information of the view, and the second with the definition of the custom view.

-Activate the instance as system administrator.
-As admin go to any window. for example goods receipt.
-Clean the standard filters
-Then save the views as a new view and set is as default.
-Glose the goodsreceipt window
-Openbravo developers tool.
-Open again goods receipt window
-See on the network panel of developers tool that two requests has been done to the datasource: MaterialMgmtShipmentInOut
No tags attached.
Issue History
2012-10-05 11:40egoitzNew Issue
2012-10-05 11:40egoitzAssigned To => AugustoMauch
2012-10-05 11:40egoitzModules => Core
2012-10-05 11:45egoitzPriorityurgent => immediate
2012-10-08 14:05AugustoMauchAssigned ToAugustoMauch => shankarb
2012-10-08 18:00shankarbAssigned Toshankarb => AugustoMauch
2012-10-10 13:36AugustoMauchTypedefect => design defect
2012-10-10 13:38AugustoMauchNote Added: 0053202
2012-10-10 16:55jonalegriaesartePriorityimmediate => urgent
2016-03-23 16:24eugeniIssue Monitored: eugeni

Notes
(0053202)
AugustoMauch   
2012-10-10 13:38   
This issue has been changed to design defect, because it is working the way it was designed.

The first call to the datasource is done right after receiving the view description, which is user and role independent. The second call is not done until the personalization info is received, because it is not known until then if the default view is a saved view. This issue could be solved by delaying the first datasource call until the personalization info is received, but then the load of all the windows would be slower, even if they do not have a saved view set as default.