Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029674Openbravo ERP09. Financial managementpublic2015-04-22 15:322016-12-16 18:37
ngarcia 
AtulOpenbravo 
highminoralways
closedfixed 
5
 
3.0PR17Q1 
aferraz
Core
No
0029674: Not possible to post a payment in if the role does not have access to the Currency window
Not possible to post a payment in if the role does not have access to the Currency window
As group admin role:
   Remove the record of Currency window for F&B International Group Admin role
   Log out and log in again
   Configure a payment method in the financial account in order to accept payments in multiple currencies
   Create a payment in a different currency than the currency of the financial account
   Try to post it
   The following error message is shown in a pop-up:
      java.lang.NullPointerException
   The log shows:
org.openbravo.base.exception.OBSecurityException: Entity Currency is not directly readable, only id and identifier properties are readable, property Currency.standardPrecision is neither of these.
No tags attached.
Issue History
2015-04-22 15:32ngarciaNew Issue
2015-04-22 15:32ngarciaAssigned To => Triage Finance
2015-04-22 15:32ngarciaModules => Core
2015-04-22 15:32ngarciaTriggers an Emergency Pack => No
2015-04-22 15:35ngarciaIssue Monitored: networkb
2015-04-23 13:35ngarciaCategoryZ. Others => 09. Financial management
2015-07-28 16:29AtulOpenbravoAssigned ToTriage Finance => AtulOpenbravo
2015-07-28 16:30AtulOpenbravoStatusnew => scheduled
2015-07-28 16:31AtulOpenbravoNote Added: 0079106
2016-03-04 12:16psanjuanNote Added: 0084725
2016-03-04 14:09psanjuanNote Edited: 0079106bug_revision_view_page.php?bugnote_id=0079106#r11356
2016-03-04 14:37psanjuanNote Edited: 0079106bug_revision_view_page.php?bugnote_id=0079106#r11359
2016-03-04 14:55psanjuanNote Added: 0084743
2016-10-17 12:10hgbotCheckin
2016-10-17 12:10hgbotNote Added: 0090623
2016-10-17 12:10hgbotStatusscheduled => resolved
2016-10-17 12:10hgbotResolutionopen => fixed
2016-10-17 12:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/789db27692a68070dadce30358508071032ca639 [^]
2016-10-17 12:11aferrazReview Assigned To => aferraz
2016-10-17 12:11aferrazNote Added: 0090627
2016-10-17 12:11aferrazStatusresolved => closed
2016-10-17 12:11aferrazFixed in Version => 3.0PR17Q1
2016-12-16 18:37hudsonbotCheckin
2016-12-16 18:37hudsonbotNote Added: 0092516

Notes
(0079106)
AtulOpenbravo   
2015-07-28 16:31   
(edited on: 2016-03-04 14:37)
Test Plan
- Login as group admin role
- Navigate to Role window: Remove the record of Currency window for F&B International Group Admin role.
- Log out and log in again
- Configure a payment method in the financial account in order to accept payments in multiple currencies
- Create a payment in a different currency than the currency of the financial account.
- Try to post it in any of the three steps (Payment In, Financial Account Transaction, Reconciliation)
- Check that posting is successfully done.

Repeat same test for Payment Out.

(0084725)
psanjuan   
2016-03-04 12:16   
Issue verified
(0084743)
psanjuan   
2016-03-04 14:55   
Test plan above verified.

Issue can be code reviewed and closed.
(0090623)
hgbot   
2016-10-17 12:10   
Repository: erp/devel/pi
Changeset: 789db27692a68070dadce30358508071032ca639
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Jul 28 20:07:53 2015 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/789db27692a68070dadce30358508071032ca639 [^]

Fixes issue 29674: Error posting a payment if no access to Currency window

Change OBContext to admin mode needed before accessing currency objects in isconvertible method of AcctServer class.

---
M src/org/openbravo/erpCommon/ad_forms/AcctServer.java
---
(0090627)
aferraz   
2016-10-17 12:11   
Code review + Testing OK
(0092516)
hudsonbot   
2016-12-16 18:37   
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/dc8bf00badd0 [^]
Maturity status: Test