Openbravo Issue Tracking System - Modules
View Issue Details
0015269ModulesMulti-Business Partner Selectorpublic2010-11-23 14:512011-07-20 18:10
psanjuan 
jonalegriaesarte 
urgentmajoralways
newopen 
20Ubuntu 8.04.1
 
 
0015269: If selector is used with a role that do not have access to the business partner category window, it may not work
If selector is used with a role that do not have access to the business partner category window, it may not work, as the code:
  private <T extends BaseOBObject> String createListbox(Class<T> t, String currentValue) {
    final OBCriteria<T> ocs = OBDal.getInstance().createCriteria(t);
may retrieve zero results.

Multidimensional Tax Report module (Localization module) depends on Multi Business Partner Selector, so we need this to be fixed.
Proposed solution is to use the statement
try {
  OBContext.setAdminMode(true);
  ... existing DAL related code ...
} finally {
  OBContext.restorePreviousMode();
}
No tags attached.
Issue History
2010-11-23 14:51psanjuanNew Issue
2010-11-23 14:51psanjuanAssigned To => mtaal
2011-06-03 11:10dalsasuaAssigned Tomtaal => dalsasua
2011-07-20 18:10dalsasuaAssigned Todalsasua => jonalegriaesarte

There are no notes attached to this issue.