Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038858Openbravo ERP04. Warehouse managementpublic2018-06-28 15:342018-08-08 13:06
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR18Q4 
aferraz
Core
No
0038858: Cannot process a Landed Cost if the role does not have access to Cost Adjustment window
Cannot process a Landed Cost if the role does not have access to Cost Adjustment window
Remove the access to Cost Adjustment window to the role
Configure a Landed Cost type using product "Electricidad" in F&B España.
Create a Landed Cost and a Landed Cost Cost.
Create a Purchase Invoice with a Line using the "Electricidad" product.
Process the Purchase Invoice.
Create a new Landed Cost Type
Create a Landed Cost
Add a receipt
Add one cost selecting the invoice created previously
Try to process the landed cost and check the log shows:

"Entity CostAdjustment is not writable by this user"
No tags attached.
Issue History
2018-06-28 15:34ngarciaNew Issue
2018-06-28 15:34ngarciaAssigned To => Triage Finance
2018-06-28 15:34ngarciaModules => Core
2018-06-28 15:34ngarciaTriggers an Emergency Pack => No
2018-06-28 15:38ngarciaResolution time => 1531951200
2018-06-28 15:38ngarciaIssue Monitored: networkb
2018-07-02 15:34SandrahuguetAssigned ToTriage Finance => collazoandy4
2018-07-02 16:00SandrahuguetAssigned Tocollazoandy4 => AtulOpenbravo
2018-07-13 19:16AtulOpenbravoStatusnew => scheduled
2018-07-13 20:26AtulOpenbravoNote Added: 0105742
2018-07-13 20:29AtulOpenbravoNote Edited: 0105742bug_revision_view_page.php?bugnote_id=0105742#r17416
2018-07-16 13:25hgbotCheckin
2018-07-16 13:25hgbotNote Added: 0105750
2018-07-16 13:25hgbotStatusscheduled => resolved
2018-07-16 13:25hgbotResolutionopen => fixed
2018-07-16 13:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/326f3d73a55ea8580063e60dc4e4c8ec98e33c4f [^]
2018-07-16 13:26aferrazReview Assigned To => aferraz
2018-07-16 13:26aferrazNote Added: 0105751
2018-07-16 13:26aferrazStatusresolved => closed
2018-07-16 13:26aferrazFixed in Version => 3.0PR18Q4
2018-08-08 13:06hudsonbotCheckin
2018-08-08 13:06hudsonbotNote Added: 0106212

Notes
(0105742)
AtulOpenbravo   
2018-07-13 20:26   
(edited on: 2018-07-13 20:29)
Test Plan

- Remove the access to Cost Adjustment window to the role
- Configure a Landed Cost type using product "Electricidad" in F&B España.
- Create a Purchase Invoice with a Line using the "Electricidad" product.
- Process the Purchase Invoice.
- Create a Landed Cost using above Landed Cost Type.
- Add a Goods Receipt and Goods Receipt Line.
- Add Cost selecting the invoice created previously.
- Try to process the landed cost, realize that landed cost is processed successfully.

(0105750)
hgbot   
2018-07-16 13:25   
Repository: erp/devel/pi
Changeset: 326f3d73a55ea8580063e60dc4e4c8ec98e33c4f
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri Jul 13 23:50:48 2018 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/326f3d73a55ea8580063e60dc4e4c8ec98e33c4f [^]

Fixes Issue 38858:Cannot process a Landed Cost if the role
does not have access to Cost Adjustment window

** use flush() in processLandedCost before restoring from
admin mode so that cost adjustment created in the process
is saved in database properly using admin mode, it also
saved Updated landed cost object to database.

---
M src/org/openbravo/costing/LandedCostProcess.java
---
(0105751)
aferraz   
2018-07-16 13:26   
Code review + Testing OK
(0106212)
hudsonbot   
2018-08-08 13:06   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/bfd7a414183a [^]
Maturity status: Test