The Order and Included Columns should be to fill mandatory
http://sourceforge.net/tracker/?func=detail&aid=2826384&group_id=176962&atid=879335
This commit is contained in:
parent
051c3b8aa8
commit
073dfef2de
|
@ -23,6 +23,7 @@ import java.util.ArrayList;
|
|||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.exceptions.AdempiereException;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
|
||||
|
@ -166,6 +167,18 @@ public class MTab extends X_AD_Tab
|
|||
// UPDATE AD_Tab SET IsInsertRecord='N' WHERE IsInsertRecord='Y' AND IsReadOnly='Y'
|
||||
if (isReadOnly() && isInsertRecord())
|
||||
setIsInsertRecord(false);
|
||||
if(isSortTab())
|
||||
{
|
||||
if(getAD_ColumnSortOrder_ID() == 0)
|
||||
{
|
||||
throw new AdempiereException("@FillMandatory@ @AD_ColumnSortOrder_ID@");
|
||||
}
|
||||
if(getAD_ColumnSortYesNo_ID() == 0)
|
||||
{
|
||||
throw new AdempiereException("@FillMandatory@ @AD_ColumnSortYesNo_ID@");
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue