IDEMPIERE-2014 Read-only tab/role allows user to edit AlwaysUpdateable fields

This commit is contained in:
Carlos Ruiz 2014-06-23 13:41:11 -05:00
parent 66e3e69111
commit 7747fdac06
1 changed files with 5 additions and 5 deletions

View File

@ -423,10 +423,6 @@ public class GridField
|| (m_vo.ColumnName.equals("Record_ID") && m_vo.displayType == DisplayType.Button)) // Zoom || (m_vo.ColumnName.equals("Record_ID") && m_vo.displayType == DisplayType.Button)) // Zoom
return true; return true;
// Fields always updareable
if (m_vo.IsAlwaysUpdateable) // Zoom
return true;
// Tab or field is R/O // Tab or field is R/O
if (m_vo.tabReadOnly || m_vo.IsReadOnly) if (m_vo.tabReadOnly || m_vo.IsReadOnly)
{ {
@ -434,6 +430,10 @@ public class GridField
return false; return false;
} }
// Fields always updateable
if (m_vo.IsAlwaysUpdateable) // Zoom
return true;
//check tab context //check tab context
if (checkContext && getGridTab() != null && if (checkContext && getGridTab() != null &&
! "Y".equals(Env.getContext(Env.getCtx(), getWindowNo(), "_QUICK_ENTRY_MODE_"))) ! "Y".equals(Env.getContext(Env.getCtx(), getWindowNo(), "_QUICK_ENTRY_MODE_")))