IDEMPIERE-5022 fix BOM Viewer data pane sometimes showing incorrect information (#960)
This commit is contained in:
parent
ed4c1a81d0
commit
dd89e1e8f5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue