Fix [ 1991514 ] ProductInfo empty after called from BOM
This commit is contained in:
parent
7d33fd9c33
commit
d75cc47746
|
@ -183,19 +183,19 @@ public class VTreeBOM extends CPanel
|
||||||
Properties ctx = Env.getCtx();
|
Properties ctx = Env.getCtx();
|
||||||
Language language = Language.getLoginLanguage(); // Base Language
|
Language language = Language.getLoginLanguage(); // Base Language
|
||||||
MLookup m_fieldProduct = MLookupFactory.get(ctx, m_WindowNo,
|
MLookup m_fieldProduct = MLookupFactory.get(ctx, m_WindowNo,
|
||||||
MColumn.getColumn_ID(MProduct.Table_Name, "M_Product_ID"),
|
MColumn.getColumn_ID(MProduct.Table_Name, "M_Product_ID"),
|
||||||
DisplayType.Search, language, MProduct.COLUMNNAME_M_Product_ID, 0, false,
|
DisplayType.Search, language, MProduct.COLUMNNAME_M_Product_ID, 0, false,
|
||||||
" IsSummary = 'N'");
|
" M_Product.IsSummary = 'N'");
|
||||||
fieldProduct = new VLookup ("M_Product_ID", false, false, true, m_fieldProduct);
|
fieldProduct = new VLookup ("M_Product_ID", false, false, true, m_fieldProduct);
|
||||||
fieldProduct.addActionListener(this);
|
fieldProduct.addActionListener(this);
|
||||||
|
|
||||||
loadTableBOM();
|
loadTableBOM();
|
||||||
splitPane.add (new JScrollPane(dataPane), JSplitPane.RIGHT);
|
splitPane.add (new JScrollPane(dataPane), JSplitPane.RIGHT);
|
||||||
dataPane.getViewport().add(tableBOM , null);
|
dataPane.getViewport().add(tableBOM , null);
|
||||||
|
|
||||||
DefaultMutableTreeNode parent = new DefaultMutableTreeNode(Msg.translate(Env.getCtx(), "BOM"));
|
DefaultMutableTreeNode parent = new DefaultMutableTreeNode(Msg.translate(Env.getCtx(), "BOM"));
|
||||||
m_tree = new JTree(parent);
|
m_tree = new JTree(parent);
|
||||||
splitPane.add (m_tree, JSplitPane.LEFT);
|
splitPane.add (m_tree, JSplitPane.LEFT);
|
||||||
|
|
||||||
|
|
||||||
} // preInit
|
} // preInit
|
||||||
|
|
Loading…
Reference in New Issue