Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0016419 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2011-03-22 12:42 | 2011-05-24 10:55 | |||
Reporter | dalsasua | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 4df9197ed075 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | Oracle | Java version | 1.6.0_21 | |||
OS Version | Ubuntu 10.10 | Database version | 11.2.0 SE | Ant version | 1.8.0 | |||
Product Version | 2.50MP27 | SCM revision | ||||||
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); } | |||||||
Tags | closingMay2011 | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0035188) hgbot (developer) 2011-03-24 07:36 |
Repository: erp/devel/pi Changeset: 4df9197ed075dfd803f9817b2d8124425a706437 Author: David Alsasua <david.alsasua <at> openbravo.com> Date: Thu Mar 24 07:34:41 2011 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/4df9197ed075dfd803f9817b2d8124425a706437 [^] Fixes issue 16419. Following Martin instructions, this changeset is pushed to fix the issue. --- M src/org/openbravo/dal/security/OrganizationStructureProvider.java --- |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |