From 7747fdac0662b03d103753a46c5fe348955e0ed3 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 23 Jun 2014 13:41:11 -0500 Subject: [PATCH] IDEMPIERE-2014 Read-only tab/role allows user to edit AlwaysUpdateable fields --- .../src/org/compiere/model/GridField.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/GridField.java b/org.adempiere.base/src/org/compiere/model/GridField.java index 8d4f328fdd..3da297356e 100644 --- a/org.adempiere.base/src/org/compiere/model/GridField.java +++ b/org.adempiere.base/src/org/compiere/model/GridField.java @@ -423,17 +423,17 @@ 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) { if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName + " NO - TabRO=" + m_vo.tabReadOnly + ", FieldRO=" + m_vo.IsReadOnly); 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_")))