IDEMPIERE-5122: Enforce Product UOM not work when user update UOM conversion record (#1083)

This commit is contained in:
Deepak Pansheriya 2021-12-23 16:13:46 +05:30 committed by GitHub
parent 1d8e34e3e4
commit 1924ddb85d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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());