IDEMPIERE-5022 fix BOM Viewer data pane sometimes showing incorrect information (#960)

This commit is contained in:
Tony Snook 2021-11-02 01:09:00 +11:00 committed by GitHub
parent ed4c1a81d0
commit dd89e1e8f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -250,7 +250,8 @@ public class WTreeBOM extends TreeBOM implements IFormController, EventListener<
if (event.getTarget().getId().equals(ConfirmPanel.A_OK))
{
if(m_selected_id > 0 || getM_Product_ID() > 0) action_loadBOM();
if(getM_Product_ID() > 0)
action_loadBOM();
}
if (event.getTarget().getId().equals(ConfirmPanel.A_CANCEL))
{
@ -318,6 +319,7 @@ public class WTreeBOM extends TreeBOM implements IFormController, EventListener<
return;
MProduct product = MProduct.get(Env.getCtx(), M_Product_ID);
treeInfo.setText (Msg.getElement(Env.getCtx(), "Sel_Product_ID")+": "+product.getValue());
m_selected_id = M_Product_ID;
Vector<Object> line = new Vector<Object>(10);
line.add( Boolean.valueOf(product.isActive())); // 0 IsActive