IDEMPIERE-2745:2Pack is not creating foreign keys

This commit is contained in:
hieplq 2016-02-13 22:38:24 +07:00
parent 460e8b9e78
commit 62fa6b90ef
1 changed files with 1 additions and 1 deletions

View File

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