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
|
||||
return true;
|
||||
|
||||
// Fields always updareable
|
||||
if (m_vo.IsAlwaysUpdateable) // Zoom
|
||||
return true;
|
||||
|
||||
// Tab or field is R/O
|
||||
if (m_vo.tabReadOnly || m_vo.IsReadOnly)
|
||||
{
|
||||
|
@ -434,6 +430,10 @@ public class GridField
|
|||
return false;
|
||||
}
|
||||
|
||||
// Fields always updateable
|
||||
if (m_vo.IsAlwaysUpdateable) // Zoom
|
||||
return true;
|
||||
|
||||
//check tab context
|
||||
if (checkContext && getGridTab() != null &&
|
||||
! "Y".equals(Env.getContext(Env.getCtx(), getWindowNo(), "_QUICK_ENTRY_MODE_")))
|
||||
|
|
Loading…
Reference in New Issue