IDEMPIERE-1925 Log SEVERE when creating a record in a window with a field based on Created or Updated / IDEMPIERE-709

This commit is contained in:
Carlos Ruiz 2014-05-02 10:14:59 -05:00
parent 25311770b9
commit 448b84f284
1 changed files with 4 additions and 2 deletions

View File

@ -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))
{