From 6600f1a34f421c85ab4147b96ddae2d185cc505a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 26 Oct 2016 22:59:09 +0200 Subject: [PATCH] IDEMPIERE-3231 Production document affecting storage for non-stocked products --- org.adempiere.base/src/org/compiere/model/MProductionLine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MProductionLine.java b/org.adempiere.base/src/org/compiere/model/MProductionLine.java index 94e0e9ec40..d91aa87553 100644 --- a/org.adempiere.base/src/org/compiere/model/MProductionLine.java +++ b/org.adempiere.base/src/org/compiere/model/MProductionLine.java @@ -81,7 +81,7 @@ public class MProductionLine extends X_M_ProductionLine { MProduct prod = new MProduct(getCtx(), getM_Product_ID(), get_TrxName()); if (log.isLoggable(Level.FINE))log.log(Level.FINE,"Loaded Product " + prod.toString()); - if ( prod.getProductType().compareTo(MProduct.PRODUCTTYPE_Item ) != 0 ) { + if ( !prod.isStocked() || prod.getProductType().compareTo(MProduct.PRODUCTTYPE_Item ) != 0 ) { // no need to do any movements if (log.isLoggable(Level.FINE))log.log(Level.FINE, "Production Line " + getLine() + " does not require stock movement"); return "";