Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0016419 | Openbravo ERP | A. Platform | public | 2011-03-22 12:42 | 2011-05-24 10:55 | |||||||
Reporter | dalsasua | |||||||||||
Assigned To | alostale | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 20 | OS Version | Ubuntu 10.10 | ||||||||
Product Version | 2.50MP27 | |||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0016419: OrganizationStructureProvider.getChildTree() fails if there exists just one organization, that is not summary | |||||||||||
Description | OrganizationStructureProvider.getChildTree() fails if there exists just one organization, that is not summary | |||||||||||
Steps To Reproduce | 1.- Install "Chart of accounts: PGC 2007 General", "Spain Taxes", "Invoice Register Book" and "Configuración de Impuestos para el Libro de Facturas" modules 2.- Run Initial Client Setup, applying all the reference data available, and clicking on "Create Accounting". 3.- Change role to the new client admin one. 4.- Run Initial Organization Setup, org type: Legal Entity With Accounting 5.- Go to organization window, flag allow period control, and choose the existing calendar. 6.- Run the set as ready process. 7.- Create a business partner category, and a business partner; set a location for it. 8.- Create a product category and a product. 9.- Create a price list version and a price list, giving a price to the created product. 10.- Create a payment term 11.- Create an invoice for the created business partner, with a line with the created product. 12.- Process and post the invoice. 13.- Create a invoice register book, and notice that a null pointer exception is returned. | |||||||||||
Proposed Solution | diff --git a/src/org/openbravo/dal/security/OrganizationStructureProvider.java b/src/org/openbravo/dal/security/OrganizationStructureProvider.java --- a/src/org/openbravo/dal/security/OrganizationStructureProvider.java +++ b/src/org/openbravo/dal/security/OrganizationStructureProvider.java @@ -263,6 +263,9 @@ */ public Set<String> getChildOrg(String orgId) { initialize(); + if (childByOrganizationID.get(orgId) == null) { + reInitialize(); + } return childByOrganizationID.get(orgId); } | |||||||||||
Additional Information | ||||||||||||
Tags | closingMay2011 | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2011-03-22 12:42 | dalsasua | New Issue | ||||||||||
2011-03-22 12:42 | dalsasua | Assigned To | => mtaal | |||||||||
2011-03-22 12:42 | dalsasua | Modules | => Core | |||||||||
2011-03-22 12:42 | dalsasua | OBNetwork customer | => No | |||||||||
2011-03-23 08:33 | alostale | Status | new => scheduled | |||||||||
2011-03-23 08:33 | alostale | fix_in_branch | => pi | |||||||||
2011-03-24 07:26 | dalsasua | fix_in_branch | pi => | |||||||||
2011-03-24 07:26 | dalsasua | Proposed Solution updated | ||||||||||
2011-03-24 07:27 | dalsasua | Assigned To | mtaal => alostale | |||||||||
2011-03-24 07:36 | hgbot | Checkin | ||||||||||
2011-03-24 07:36 | hgbot | Note Added: 0035188 | ||||||||||
2011-03-24 07:36 | hgbot | Status | scheduled => resolved | |||||||||
2011-03-24 07:36 | hgbot | Resolution | open => fixed | |||||||||
2011-03-24 07:36 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4df9197ed075dfd803f9817b2d8124425a706437 [^] | |||||||||
2011-05-24 10:49 | dalsasua | Tag Attached: closingMay2011 | ||||||||||
2011-05-24 10:55 | dalsasua | Status | resolved => closed |
Notes | |||||
|
|||||
|
|