From a12919dd2f7879be03da3aab6e34c4ca9cfb3c5d Mon Sep 17 00:00:00 2001 From: hieplq Date: Thu, 8 May 2014 09:54:09 -0500 Subject: [PATCH] IDEMPIERE-1649:Reference of User1_id, User2_id in new table is create incorrect --- .../src/org/compiere/model/Callout_AD_Column.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base.callout/src/org/compiere/model/Callout_AD_Column.java b/org.adempiere.base.callout/src/org/compiere/model/Callout_AD_Column.java index 31229a0a41..53f693e395 100644 --- a/org.adempiere.base.callout/src/org/compiere/model/Callout_AD_Column.java +++ b/org.adempiere.base.callout/src/org/compiere/model/Callout_AD_Column.java @@ -48,7 +48,7 @@ public class Callout_AD_Column extends CalloutEngine column.setIsIdentifier(false); column.setIsUpdateable(false); column.setIsAlwaysUpdateable(false); - column.setIsKey(true); + column.setIsKey(false); } else if (column.getAD_Table().getTableName().concat("_ID").equals(column.getColumnName())) { // ID key column column.setAD_Reference_ID(DisplayType.ID); @@ -61,6 +61,7 @@ public class Callout_AD_Column extends CalloutEngine column.setIsIdentifier(false); column.setIsUpdateable(false); column.setIsAlwaysUpdateable(false); + column.setIsKey(true); } else { // get defaults from most used case String sql = ""