IDEMPIERE-2014 Read-only tab/role allows user to edit AlwaysUpdateable fields
This commit is contained in:
parent
66e3e69111
commit
7747fdac06
|
@ -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_")))
|
||||||
|
|
Loading…
Reference in New Issue