From 9e039d4d76118d0841e320c148a8ed8954448d5d Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 11 Jun 2007 10:02:12 +0000 Subject: [PATCH] [ 1734881 ] Any window with product attribute on first tab is not workin http://sourceforge.net/tracker/index.php?func=detail&aid=1734881&group_id=176962&atid=879332 Revert to rev. 2533. --- base/src/org/compiere/model/GridField.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/base/src/org/compiere/model/GridField.java b/base/src/org/compiere/model/GridField.java index 53e4b5f80b..aecbc50ab5 100644 --- a/base/src/org/compiere/model/GridField.java +++ b/base/src/org/compiere/model/GridField.java @@ -122,9 +122,7 @@ public class GridField return; log.config("(" + m_vo.ColumnName + ")"); - - if (DisplayType.isLookup(m_vo.displayType) && m_vo.IsDisplayed || m_vo.displayType == DisplayType.TableDir && m_vo.IsDisplayed - ||m_vo.displayType == DisplayType.PAttribute) + if (DisplayType.isLookup(m_vo.displayType) && m_vo.IsDisplayed) { if (m_vo.lookupInfo == null) { @@ -158,11 +156,11 @@ public class GridField MAccountLookup ma = new MAccountLookup (m_vo.ctx, m_vo.WindowNo); m_lookup = ma; } - //else if (m_vo.displayType == DisplayType.PAttribute) // not cached - //{ - // MPAttributeLookup pa = new MPAttributeLookup (m_vo.ctx, m_vo.WindowNo); - // m_lookup = pa; - //} + else if (m_vo.displayType == DisplayType.PAttribute) // not cached + { + MPAttributeLookup pa = new MPAttributeLookup (m_vo.ctx, m_vo.WindowNo); + m_lookup = pa; + } } // m_lookup /** @@ -369,6 +367,7 @@ public class GridField if (!retValue) return false; } + // Always editable if Active if (m_vo.ColumnName.equals("Processing")