IDEMPIERE-3886 Validate change of Attribute set instance on order lines when the qty reserved > 0

This commit is contained in:
Diego Ruiz 2019-02-09 12:42:03 +01:00
parent 3c1ac16112
commit 8a2a01735e
1 changed files with 2 additions and 2 deletions

View File

@ -798,9 +798,9 @@ public class MOrderLine extends X_C_OrderLine
setHeaderInfo(getParent());
// R/O Check - Product/Warehouse Change
// R/O Check - Product/Warehouse Change/Attribute set instance
if (!newRecord
&& (is_ValueChanged("M_Product_ID") || is_ValueChanged("M_Warehouse_ID")))
&& (is_ValueChanged("M_Product_ID") || is_ValueChanged("M_Warehouse_ID") || is_ValueChanged("M_AttributeSetInstance_ID")))
{
if (!canChangeWarehouse())
return false;