IDEMPIERE-1331 Save and new Button.

This commit is contained in:
Heng Sin Low 2013-09-11 13:14:32 +08:00
parent ed4f7e42e7
commit 6e2c179492
1 changed files with 5 additions and 1 deletions

View File

@ -1193,6 +1193,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
{
boolean refresh=true;
Treeitem item = treePanel.getTree().getSelectedItem();
SimpleTreeModel model = (SimpleTreeModel)(TreeModel<?>) treePanel.getTree().getModel();
if (item != null)
{
@SuppressWarnings("unchecked")
@ -1202,7 +1203,10 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
refresh = false;
}
}
if ("Saved".equals(e.getAD_Message()) && model.find(null, gridTab.getRecord_ID())==null)
{
addNewNode();
}
if (refresh)
{
int AD_Tree_ID = Env.getContextAsInt (Env.getCtx(), getWindowNo(), "AD_Tree_ID", true);