From 2ce294bb108b424254f960aa1511b314f438b8b7 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 11 Mar 2010 19:21:37 +0000 Subject: [PATCH] BF [2897730] - Bank Transfer improvements and fixes - make DocumentNo mandatory Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2897730 --- base/src/org/compiere/model/GridField.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/GridField.java b/base/src/org/compiere/model/GridField.java index b0dadc67e5..aafe5c8c24 100644 --- a/base/src/org/compiere/model/GridField.java +++ b/base/src/org/compiere/model/GridField.java @@ -324,11 +324,14 @@ public class GridField // Numeric Keys and Created/Updated as well as // DocumentNo/Value/ASI ars not mandatory (persistency layer manages them) - if ((m_vo.IsKey && m_vo.ColumnName.endsWith("_ID")) + if (m_gridTab != null && // if gridtab doesn't exist then it's not a window field (probably a process parameter field) + ( (m_vo.IsKey && m_vo.ColumnName.endsWith("_ID")) || m_vo.ColumnName.startsWith("Created") || m_vo.ColumnName.startsWith("Updated") || m_vo.ColumnName.equals("Value") || m_vo.ColumnName.equals("DocumentNo") - || m_vo.ColumnName.equals("M_AttributeSetInstance_ID")) // 0 is valid + || m_vo.ColumnName.equals("M_AttributeSetInstance_ID") // 0 is valid + ) + ) return false; // Mandatory if displayed