IDEMPIERE-5122: Enforce Product UOM not work when user update UOM conversion record (#1083)
This commit is contained in:
parent
1d8e34e3e4
commit
1924ddb85d
|
@ -831,7 +831,7 @@ public class MUOMConversion extends X_C_UOM_Conversion implements ImmutablePOSup
|
|||
if (MSysConfig.getBooleanValue(MSysConfig.ProductUOMConversionUOMValidate, true, getAD_Client_ID()))
|
||||
{
|
||||
if (getM_Product_ID() != 0
|
||||
&& (newRecord || is_ValueChanged("M_Product_ID")))
|
||||
&& (newRecord || is_ValueChanged("M_Product_ID") || is_ValueChanged("C_UOM_ID")))
|
||||
{
|
||||
// Check of product must be in the same transaction as the conversion being saved
|
||||
MProduct product = new MProduct(getCtx(), getM_Product_ID(), get_TrxName());
|
||||
|
|
Loading…
Reference in New Issue