#1002872 Support estimated landed costs. Fixed level 2 tab not auto refresh when moving from level 0 to level 1 tab using the grid edit icon. IDEMPIERE-1285

This commit is contained in:
Heng Sin Low 2013-10-01 18:30:26 +08:00
parent 9b98e0f398
commit dcfb83af13
1 changed files with 11 additions and 0 deletions

View File

@ -1181,9 +1181,20 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
{
Object value = Executions.getCurrent().removeAttribute(CompositeADTabbox.AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE);
if (value != newTabpanel)
{
newTabpanel.query();
}
else
{
//detail pane of the new header tab might need refresh
if (newTabpanel instanceof ADTabpanel)
{
ADTabpanel adtabpanel = (ADTabpanel) newTabpanel;
Events.echoEvent(ADTabpanel.ON_POST_INIT_EVENT, adtabpanel, null);
}
}
}
else
{
newTabpanel.refresh();
}