Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036921Openbravo ERP04. Warehouse managementpublic2017-09-21 13:392017-09-25 10:59
ngarcia 
markmm82 
urgentminoralways
closedfixed 
5
 
3.0PR17Q3.13.0PR17Q3.1 
aferraz
Core
No
0036921: Default values are not selected in Return Material Receipt window if the organization does not have an on hand warehouse defined
Default values are not selected in Return Material Receipt window if the organization does not have an on hand warehouse defined

As group admin role:
   Remove 'España Región Norte' warehouse to 'F&B España - Región Norte' organization (Organization - Warehouse tab)
   Create a new record in Return Material Receipt
   Save it
   Create a new record and check all the fields remain empty

   The log shows:
      ERROR org.openbravo.client.application.window.FormInitializationComponent - TabId:30576C6ABD12419F9D19D497216FC9B8 - Mode:NEW - rowId:null
org.openbravo.base.exception.OBException: Couldn't execute callout (class org.openbravo.erpCommon.ad_callouts.SE_InOut_Warehouse)
    at org.openbravo.client.application.window.FormInitializationComponent.runCallouts(FormInitializationComponent.java:1555)
...
Caused by: java.lang.NullPointerException
    at org.openbravo.erpCommon.ad_callouts.SE_InOut_Warehouse.execute(SE_InOut_Warehouse.java:41)
No tags attached.
blocks defect 0036917 closed markmm82 Default values are not selected in Return Material Receipt window if the organization does not have an on hand warehouse defined 
Issue History
2017-09-21 18:03aferrazTypedefect => backport
2017-09-21 18:03aferrazTarget Version => 3.0PR17Q3.1
2017-09-21 18:03aferrazAssigned ToTriage Finance => markmm82
2017-09-25 10:58hgbotCheckin
2017-09-25 10:58hgbotNote Added: 0099520
2017-09-25 10:58hgbotStatusscheduled => resolved
2017-09-25 10:58hgbotResolutionopen => fixed
2017-09-25 10:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q3.1/rev/a5619c8d1872a0c8cef8ed4a45e38afe57046a2f [^]
2017-09-25 10:59aferrazReview Assigned To => aferraz
2017-09-25 10:59aferrazNote Added: 0099522
2017-09-25 10:59aferrazStatusresolved => closed
2017-09-25 10:59aferrazFixed in Version => 3.0PR17Q3.1

Notes
(0099520)
hgbot   
2017-09-25 10:58   
Repository: erp/backports/3.0PR17Q3.1
Changeset: a5619c8d1872a0c8cef8ed4a45e38afe57046a2f
Author: Mark <markmm82 <at> gmail.com>
Date: Fri Sep 22 11:35:32 2017 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.1/rev/a5619c8d1872a0c8cef8ed4a45e38afe57046a2f [^]

Fixes issue 36921: Default values are not selected in Return Material Receipt
window if the organization does not have an on hand warehouse defined

A NPE is fired if Warehouse is not selected, because was trying to access a method
of null object.

To fix that is avoided a NPE, only creating a OBDAL object if a warehouse is selected.

---
M src/org/openbravo/erpCommon/ad_callouts/SE_InOut_Warehouse.java
---
(0099522)
aferraz   
2017-09-25 10:59   
Code review + Testing OK