IDEMPIERE-651 Cannot Navigate to Cost Movement

This commit is contained in:
Carlos Ruiz 2013-02-27 13:47:52 -05:00
parent 590faaf60a
commit f0c8c2e471
2 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,7 @@ import org.compiere.util.CLogger;
import org.compiere.util.Env;
import org.compiere.util.Evaluator;
import org.compiere.util.Language;
import org.compiere.util.Util;
/**
* Tabbed Pane - either Workbench or Window Tab
@ -283,6 +284,9 @@ public class VTabbedPane extends CTabbedPane
GridController rightGC = null;
//boolean canJump = true;
boolean canJump = oldGC.getMTab().getRecord_ID()+zeroValid <=0 ? false : true; // IDEMPIERE 382
// IDEMPIERE-651 Allow navigating to a detail when parent doesn't have ID
if (! canJump && Util.isEmpty(oldGC.getMTab().getKeyColumnName()))
canJump = true;
int currentLevel = newGC.getTabLevel();
for (int i = index-1; i >=0; i--)
{

View File

@ -30,6 +30,7 @@ import org.compiere.model.MTable;
import org.compiere.util.CLogger;
import org.compiere.util.Env;
import org.compiere.util.Evaluator;
import org.compiere.util.Util;
/**
*
@ -244,6 +245,9 @@ public abstract class AbstractADTabbox extends AbstractUIPart implements IADTabb
int zeroValid = (MTable.isZeroIDTable(oldTabpanel.getTableName()) ? 1 : 0);
if (oldTabpanel.getRecord_ID() + zeroValid <= 0)
canJump = false;
// IDEMPIERE-651 Allow navigating to a detail when parent doesn't have ID
if (! canJump && Util.isEmpty(oldTabpanel.getGridTab().getKeyColumnName()))
canJump = true;
}
}
}