IDEMPIERE-2678 Allow to set explicit NULL value for fields

This commit is contained in:
Carlos Ruiz 2016-08-06 22:10:45 +02:00
parent d543f06a28
commit 70d1df6b35
1 changed files with 4 additions and 0 deletions

View File

@ -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;