diff --git a/org.adempiere.base/src/org/compiere/model/MProduct.java b/org.adempiere.base/src/org/compiere/model/MProduct.java index 09570e3d81..538063f802 100644 --- a/org.adempiere.base/src/org/compiere/model/MProduct.java +++ b/org.adempiere.base/src/org/compiere/model/MProduct.java @@ -453,7 +453,7 @@ public class MProduct extends X_M_Product implements ImmutablePOSupport public boolean setResource (MResourceType parent) { boolean changed = false; - if (PRODUCTTYPE_Resource.equals(getProductType())) + if (!PRODUCTTYPE_Resource.equals(getProductType())) { setProductType(PRODUCTTYPE_Resource); changed = true;