From 62fa6b90efc77ad0b6137dd774390fbec8ea9f0f Mon Sep 17 00:00:00 2001 From: hieplq Date: Sat, 13 Feb 2016 22:38:24 +0700 Subject: [PATCH] IDEMPIERE-2745:2Pack is not creating foreign keys --- org.adempiere.base/src/org/compiere/model/MColumn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MColumn.java b/org.adempiere.base/src/org/compiere/model/MColumn.java index aa89649459..9b90e4dd40 100644 --- a/org.adempiere.base/src/org/compiere/model/MColumn.java +++ b/org.adempiere.base/src/org/compiere/model/MColumn.java @@ -843,7 +843,7 @@ public class MColumn extends X_AD_Column { StringBuilder fkConstraintSql = new StringBuilder(); - if (!column.isKey() && !column.getColumnName().equals(PO.getUUIDColumnName(table.getTableName()))) + if (!column.isKey() && !column.getColumnName().equals(PO.getUUIDColumnName(table.getTableName())) && !column.isVirtualColumn()) { int refid = column.getAD_Reference_ID(); if (refid != DisplayType.List && refid != DisplayType.Payment)