From 448b84f2845f5501f46580fde63019d2df17f170 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 2 May 2014 10:14:59 -0500 Subject: [PATCH] IDEMPIERE-1925 Log SEVERE when creating a record in a window with a field based on Created or Updated / IDEMPIERE-709 --- org.adempiere.base/src/org/compiere/model/GridField.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/GridField.java b/org.adempiere.base/src/org/compiere/model/GridField.java index 064e712e26..830cd76586 100644 --- a/org.adempiere.base/src/org/compiere/model/GridField.java +++ b/org.adempiere.base/src/org/compiere/model/GridField.java @@ -551,9 +551,11 @@ public class GridField // No defaults for these fields if (m_vo.IsKey || m_vo.displayType == DisplayType.RowID - || DisplayType.isLOB(m_vo.displayType)) + || DisplayType.isLOB(m_vo.displayType) + || "Created".equals(m_vo.ColumnName) // for Created/Updated default is managed on PO, and direct inserts on DB + || "Updated".equals(m_vo.ColumnName)) return null; - // Set Parent to context if not explitly set + // Set Parent to context if not explicitly set if (isParentValue() && (m_vo.DefaultValue == null || m_vo.DefaultValue.length() == 0)) {