details:   https://code.openbravo.com/erp/devel/pi/rev/5abaf711e341
changeset: 35640:5abaf711e341
user:      Nono Carballo <nonofce <at> gmail.com>
date:      Mon Apr 08 17:20:15 2019 +0200
summary:   Fixes issue 40516: Disables organization check when processing 
landed cost

Disables organization access check to allow landed cost processing, when
it was created from a role not having access to then Legal Entity.

diffstat:

 src/org/openbravo/costing/CostAdjustmentProcess.java |  2 +-
 src/org/openbravo/costing/LandedCostProcess.java     |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 4802bbc88730 -r 5abaf711e341 
src/org/openbravo/costing/CostAdjustmentProcess.java
--- a/src/org/openbravo/costing/CostAdjustmentProcess.java      Fri Apr 05 
13:40:57 2019 +0200
+++ b/src/org/openbravo/costing/CostAdjustmentProcess.java      Mon Apr 08 
17:20:15 2019 +0200
@@ -76,7 +76,7 @@
   private JSONObject processCostAdjustment(CostAdjustment _costAdjustment) 
throws OBException {
     CostAdjustment costAdjustment = _costAdjustment;
     JSONObject message = new JSONObject();
-    OBContext.setAdminMode(true);
+    OBContext.setAdminMode(false);
     try {
       message.put("severity", "success");
       message.put("title", "");
diff -r 4802bbc88730 -r 5abaf711e341 
src/org/openbravo/costing/LandedCostProcess.java
--- a/src/org/openbravo/costing/LandedCostProcess.java  Fri Apr 05 13:40:57 
2019 +0200
+++ b/src/org/openbravo/costing/LandedCostProcess.java  Mon Apr 08 17:20:15 
2019 +0200
@@ -80,7 +80,7 @@
   public JSONObject processLandedCost(LandedCost _landedCost) {
     LandedCost landedCost = _landedCost;
     JSONObject message = new JSONObject();
-    OBContext.setAdminMode(true);
+    OBContext.setAdminMode(false);
     try {
       message.put("severity", "success");
       message.put("title", "");


_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to