Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039406 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 03. Procurement management | major | always | 2018-10-04 22:52 | 2018-11-15 09:20 | |||
Reporter | lbressan | View Status | public | |||||
Assigned To | AtulOpenbravo | |||||||
Priority | high | Resolution | duplicate | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | pi | |||
OS | Any | Database | PostgreSQL | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | Sandrahuguet | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 5057 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0039406: Product Callout in Requisition Line can throw a Null Pointer when "UomManagement" preference is enabled. | |||||||
Description | When trying to create a Requisition Line, if the preference "UomManagement" is enabled, the "SL_RequisitionLine_Product" callout throws an exception and apparently is affecting the visibility of some fields that evaluate this preference, such as "Operative Quantity" and "Alternative UOM". In the code of the callout, inside an if statement, is evaluated if the preference "UomManagement" is enabled and if the product ID is empty. If this is true, a Utility is called where tries to obtain the entity of the product with the empty ID. Then, tries to get the UOM of the product and this throws a Null Pointer Exception. | |||||||
Steps To Reproduce | 1) Enable the UomManagement preference. Make sure to set the preference visible to any user, organization and client. 2) Display the "Operative Quantity" and "Alternative UOM" fields. 3) Enter to Requisition window 4) Create a new Requisition and then a Requisition Line. Make sure that the "Order Uom" field is empty. 5) Check if "Operative Quantity" and "Alternative UOM" fields are displayed. | |||||||
Proposed Solution | If checking in SL_RequisitionLine_Product callout, that the product ID is empty and that the preference "UomManagement" is enabled, is correct (SL_RequisitionLine_Product.png), then the utility UOMUtil must check at some point, that the String parameter is not empty or the product obtained inside the getDefaultAUMForFlow method is different from null (UOMUtil.png). Otherwise, modify the if statement controlling that the String of the product is not empty, and if it is possible add more controls to the getDefaultAUMForFlow in UOMUtil. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
||||||||
|
![]() |
|
(0107923) AtulOpenbravo (viewer) 2018-11-15 07:56 |
Fixed in commit https://code.openbravo.com/erp/devel/pi/rev/446b08330250484960ab9b786410e6cef630e3ae [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2018-10-04 22:52 | lbressan | New Issue | |
2018-10-04 22:52 | lbressan | Assigned To | => Triage Finance |
2018-10-04 22:52 | lbressan | File Added: CalloutScreenshot.zip | |
2018-10-04 22:52 | lbressan | OBNetwork customer | => Yes |
2018-10-04 22:52 | lbressan | Modules | => Core |
2018-10-04 22:52 | lbressan | Support ticket | => 5057 |
2018-10-04 22:52 | lbressan | Resolution time | => 1539813600 |
2018-10-04 22:52 | lbressan | Triggers an Emergency Pack | => No |
2018-11-07 12:26 | gsuarez | Type | design defect => defect |
2018-11-07 17:48 | Sandrahuguet | Resolution time | 1539813600 => 1540418400 |
2018-11-07 17:57 | Sandrahuguet | Resolution time | 1540418400 => 1539813600 |
2018-11-07 18:03 | Sandrahuguet | Resolution time | 1539813600 => 1543359600 |
2018-11-07 18:04 | Sandrahuguet | Assigned To | Triage Finance => AtulOpenbravo |
2018-11-15 07:54 | AtulOpenbravo | Relationship added | duplicate of 0039073 |
2018-11-15 07:56 | AtulOpenbravo | Note Added: 0107923 | |
2018-11-15 09:20 | Sandrahuguet | Review Assigned To | => Sandrahuguet |
2018-11-15 09:20 | Sandrahuguet | Status | new => closed |
2018-11-15 09:20 | Sandrahuguet | Resolution | open => duplicate |
Copyright © 2000 - 2009 MantisBT Group |