diff --git a/org.idempiere.test/src/org/idempiere/test/model/ProductionTest.java b/org.idempiere.test/src/org/idempiere/test/model/ProductionTest.java index 964e1e7b5c..a88e28151b 100644 --- a/org.idempiere.test/src/org/idempiere/test/model/ProductionTest.java +++ b/org.idempiere.test/src/org/idempiere/test/model/ProductionTest.java @@ -383,7 +383,10 @@ public class ProductionTest extends AbstractTestCase { try { int rollUpProcessId = 53230; int mulchId = 137; - MProduct mulch = MProduct.get(mulchId); + MProduct mulch = new MProduct(Env.getCtx(), mulchId, getTrxName()); + mulch.setM_Product_Category_ID(category.get_ID()); + mulch.saveEx(); + BigDecimal componentCost = MCost.getCurrentCost(mulch, 0, getTrxName()); MProduct mulchX = new MProduct(Env.getCtx(), 0, getTrxName());