From 70d1df6b35ed1a1a438cbfc1b030faeb2c0a29df Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 6 Aug 2016 22:10:45 +0200 Subject: [PATCH] IDEMPIERE-2678 Allow to set explicit NULL value for fields --- org.adempiere.base/src/org/compiere/model/GridField.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/model/GridField.java b/org.adempiere.base/src/org/compiere/model/GridField.java index cc1fb87121..237771dcaf 100644 --- a/org.adempiere.base/src/org/compiere/model/GridField.java +++ b/org.adempiere.base/src/org/compiere/model/GridField.java @@ -605,6 +605,10 @@ public class GridField public Object getDefault(ParseSeq seqGetDefaultValue){ Object defaultValue = null; for (Character seqType : seqGetDefaultValue){ + if ( seqType == '3' // default from Expression + && m_vo.DefaultValue != null + && m_vo.DefaultValue.toUpperCase().equals("NULL")) // IDEMPIERE-2678 + return null; defaultValue = getDefaultValueByType(seqType); if (defaultValue != null) return defaultValue;