diff --git a/base/src/org/adempiere/model/GenericPO.java b/base/src/org/adempiere/model/GenericPO.java index 4f269d9600..1a25c9ed56 100644 --- a/base/src/org/adempiere/model/GenericPO.java +++ b/base/src/org/adempiere/model/GenericPO.java @@ -84,7 +84,7 @@ public class GenericPO extends PO { tableName = wrapper.tableName; tableID = MTable.getTable_ID(tableName); // log.info("Table_ID: "+Table_ID); - POInfo poi = POInfo.getPOInfo(ctx, tableID); + POInfo poi = POInfo.getPOInfo(ctx, tableID, this.get_TrxName()); return poi; } diff --git a/base/src/org/adempiere/pipo/AbstractElementHandler.java b/base/src/org/adempiere/pipo/AbstractElementHandler.java index eb3ed83e70..6a2891bdd6 100644 --- a/base/src/org/adempiere/pipo/AbstractElementHandler.java +++ b/base/src/org/adempiere/pipo/AbstractElementHandler.java @@ -224,7 +224,7 @@ public abstract class AbstractElementHandler implements ElementHandler { int idBackup = 0; String colValue=null; int tableID = get_IDWithColumn(ctx, "AD_Table", "TableName", tableName); - POInfo poInfo = POInfo.getPOInfo(ctx, tableID); + POInfo poInfo = POInfo.getPOInfo(ctx, tableID, getTrxName(ctx)); for (int i = 0; i < poInfo.getColumnCount(); i++){ String colName = poInfo.getColumnName(i); colValue=null; diff --git a/base/src/org/adempiere/pipo/handler/DataElementHandler.java b/base/src/org/adempiere/pipo/handler/DataElementHandler.java index 0ac753fcd2..238e114952 100644 --- a/base/src/org/adempiere/pipo/handler/DataElementHandler.java +++ b/base/src/org/adempiere/pipo/handler/DataElementHandler.java @@ -160,7 +160,7 @@ public class DataElementHandler extends AbstractElementHandler { // for debug GenericPO. if (false) { - POInfo poInfo = POInfo.getPOInfo(ctx, get_ID(ctx, "AD_Table", d_tablename)); + POInfo poInfo = POInfo.getPOInfo(ctx, get_ID(ctx, "AD_Table", d_tablename), getTrxName(ctx)); if (poInfo == null) log.info("poInfo is null."); for (int i = 0; i < poInfo.getColumnCount(); i++) { diff --git a/base/src/org/adempiere/util/ModelClassGenerator.java b/base/src/org/adempiere/util/ModelClassGenerator.java index 35b3826aa5..8cc0bc922e 100644 --- a/base/src/org/adempiere/util/ModelClassGenerator.java +++ b/base/src/org/adempiere/util/ModelClassGenerator.java @@ -257,7 +257,7 @@ public class ModelClassGenerator .append(" /** Load Meta Data */").append(NL) .append(" protected POInfo initPO (Properties ctx)").append(NL) .append(" {").append(NL) - .append(" POInfo poi = POInfo.getPOInfo (ctx, Table_ID);").append(NL) + .append(" POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());").append(NL) .append(" return poi;").append(NL) .append(" }").append(NL) // initPO