diff --git a/org.adempiere.base/src/org/compiere/model/MPackage.java b/org.adempiere.base/src/org/compiere/model/MPackage.java index edb4d71f34..fb50e5a669 100644 --- a/org.adempiere.base/src/org/compiere/model/MPackage.java +++ b/org.adempiere.base/src/org/compiere/model/MPackage.java @@ -579,7 +579,7 @@ public class MPackage extends X_M_Package int[] ids = MPackageMPS.getAllIDs(MPackageMPS.Table_Name, "M_Package_ID = " + getM_Package_ID(), get_TrxName()); for (int i = 0; i < ids.length; i++) { - MPackageMPS packageMPS = new MPackageMPS(getCtx(), ids[i], get_TrxName()); + MPackageMPS packageMPS = new MPackageMPS(getCtx(), ids[i], null); if (packageMPS.getWeight() == null || packageMPS.getWeight().compareTo(BigDecimal.ZERO) == 0) { String sql = "SELECT SUM(LineWeight) FROM X_PackageLineWeight plw WHERE plw.M_PackageMPS_ID=?";