details:   https://code.openbravo.com/erp/devel/pi/rev/6d404d5b20d4
changeset: 32445:6d404d5b20d4
user:      Armaignac <collazoandy4 <at> gmail.com>
date:      Mon Jul 10 10:37:15 2017 -0400
summary:   Fixes issue 36417: Characteristic Description is not updated

The Characteristic process from product window doesn't update the product
characteristic description, a new call to Update Product Characteristics
Description process is made to correctly update the product characteristic
description

details:   https://code.openbravo.com/erp/devel/pi/rev/267dc90e6f1f
changeset: 32446:267dc90e6f1f
user:      Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
date:      Tue Jul 11 11:38:20 2017 +0200
summary:   Related to issue 36417: Code review improvements

Call to VariantChDescUpdateProcess after flush to set characteristic 
description properly.

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/UpdateInvariantCharacteristicsHandler.java
 |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 774cff79b78d -r 267dc90e6f1f 
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/UpdateInvariantCharacteristicsHandler.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/UpdateInvariantCharacteristicsHandler.java
    Tue Jul 11 10:46:15 2017 +0530
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/UpdateInvariantCharacteristicsHandler.java
    Tue Jul 11 11:38:20 2017 +0200
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2013-2016 Openbravo SLU
+ * All portions are Copyright (C) 2013-2017 Openbravo SLU
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -31,6 +31,7 @@
 import org.openbravo.dal.service.OBCriteria;
 import org.openbravo.dal.service.OBDal;
 import org.openbravo.erpCommon.utility.OBMessageUtils;
+import org.openbravo.materialmgmt.VariantChDescUpdateProcess;
 import org.openbravo.model.common.plm.Characteristic;
 import org.openbravo.model.common.plm.CharacteristicValue;
 import org.openbravo.model.common.plm.Product;
@@ -158,7 +159,9 @@
           }
 
         }
+
         OBDal.getInstance().flush();
+        new VariantChDescUpdateProcess().update(productId, null);
         JSONObject message = new JSONObject();
         message.put("severity", "success");
         message.put("text", 
OBMessageUtils.messageBD("UpdateCharacteristicsSuccess"));

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to