diff --git a/base/src/org/compiere/model/MReplenish.java b/base/src/org/compiere/model/MReplenish.java index 6009098fa1..6c9fe2f87e 100644 --- a/base/src/org/compiere/model/MReplenish.java +++ b/base/src/org/compiere/model/MReplenish.java @@ -73,9 +73,10 @@ public class MReplenish extends X_M_Replenish { */ public static List getForProduct(Properties ctx, int M_ProductID, String trxName) { String whereClause= "M_Product_ID=? AND AD_Client_ID=? AND AD_Org_ID IN (0, ?) "; - return (List) new Query(ctx, Table_Name, whereClause, trxName) + return new Query(ctx, Table_Name, whereClause, trxName) .setParameters(new Object[]{M_ProductID, Env.getAD_Client_ID(ctx), Env.getAD_Org_ID(ctx)}) .setOrderBy("AD_Org_ID") - .setOnlyActiveRecords(true); + .setOnlyActiveRecords(true) + .list(); } }