1002807 - Fixed ReadonlyLogic+IsProcessed() validation create confusing UI state. IDEMPIERE-54

This commit is contained in:
Heng Sin Low 2013-09-30 18:34:30 +08:00
parent 0b12114ec1
commit c9d56568b3
1 changed files with 5 additions and 1 deletions

View File

@ -1160,6 +1160,10 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
}
// Prevent New Where Main Record is processed
// but not apply for TabLevel=0 - teo_sarca [ 1673902 ]
// hengsin: together with readonly logic, the following validation create confusing situation for user.
// i.e, if readonly logic enable the new button on toolbar, it will just does nothing due to the validation below.
// better let everything decide using just the tab's readonly logic instead.
/*
if (m_vo.TabLevel > 0 && m_vo.TabNo > 0)
{
boolean processed = isProcessed();
@ -1170,7 +1174,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
return false;
}
if (log.isLoggable(Level.FINEST)) log.finest("Processed=" + processed);
}
}*/
//hengsin, don't create new when parent is empty
if (isDetail() && m_parentNeedSave)