| Openbravo Issue Tracking System - Openbravo ERP | 
| View Issue Details | 
| 
 | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0031386 | Openbravo ERP | A. Platform | public | 2015-11-06 10:21 | 2015-11-23 21:17 | 
| 
 | 
| Reporter | aferraz |  | 
| Assigned To | aferraz |  | 
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | closed | Resolution | fixed |  | 
| Platform |  | OS | 30 | OS Version | Professional Appliance | 
| Product Version |  |  | 
| Target Version | 3.0PR16Q1 | Fixed in Version |  |  | 
| Merge Request Status |  | 
| Review Assigned To | dmiguelez | 
| OBNetwork customer | No | 
| Web browser |  | 
| Modules | Core | 
| Support ticket |  | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
| 
 | 
| Summary | 0031386: Error shown in Add Payment when role has no access to Financial Account window | 
| Description | Error shown in Add Payment when role has no access to Financial Account window | 
| Steps To Reproduce | As F&B Admin: 
 - Go to Role window and select F&B España, S.A - Finance
 In Window Access tab, delete all records but related to Sales Invoice window
 In Report and Process Access, delete record related to Add Payment process
 
 As F&B España Finance:
 
 - Go to Sales Invoice window
 Select any record with Total Outstanding > 0
 Click on Add Payment button
 Realize Add Payment is opened and all fields are filled, but an error is shown with the following message:
 Error occured: org.openbravo.base.exception.OBException: org.openbravo.base.exception.OBSecurityException: Entity FinancialMgmtFinAccPaymentMethod is not readable by the user 100
 
 - If you give access for Financial Account window to Finance role, this error is not shown.
 | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | related to | defect | 0029035 |  | closed | inigosanchez | Process definition containing parameters defined as "window", should automatically inherit permissions |  | related to | defect | 0027236 | 3.0PR14Q3 | closed | alostale | Process Definition defaults are not calculated if role inherits access to process from window access | 
 | 
| Attached Files |  | 
| 
 | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2015-11-06 10:21 | aferraz | New Issue |  | 
| 2015-11-06 10:21 | aferraz | Assigned To | => platform | 
| 2015-11-06 10:21 | aferraz | OBNetwork customer | => No | 
| 2015-11-06 10:21 | aferraz | Modules | => Core | 
| 2015-11-06 10:21 | aferraz | Triggers an Emergency Pack | => No | 
| 2015-11-06 10:29 | aferraz | Note Added: 0081548 |  | 
| 2015-11-06 10:33 | aferraz | Relationship added | related to 0029035 | 
| 2015-11-06 10:33 | aferraz | Relationship added | related to 0027236 | 
| 2015-11-06 10:48 | alostale | Assigned To | platform => Triage Finance | 
| 2015-11-06 10:49 | alostale | Note Added: 0081550 |  | 
| 2015-11-18 13:02 | aferraz | Assigned To | Triage Finance => aferraz | 
| 2015-11-18 13:02 | aferraz | Status | new => scheduled | 
| 2015-11-18 13:03 | aferraz | Note Added: 0081947 |  | 
| 2015-11-23 13:11 | hgbot | Checkin |  | 
| 2015-11-23 13:11 | hgbot | Note Added: 0082085 |  | 
| 2015-11-23 13:11 | hgbot | Status | scheduled => resolved | 
| 2015-11-23 13:11 | hgbot | Resolution | open => fixed | 
| 2015-11-23 13:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/8ae08a1890a369c0121dd0adaa74f6e064b20b22 [^] | 
| 2015-11-23 13:12 | dmiguelez | Review Assigned To | => dmiguelez | 
| 2015-11-23 13:12 | dmiguelez | Note Added: 0082086 |  | 
| 2015-11-23 13:12 | dmiguelez | Status | resolved => closed | 
| 2015-11-23 21:17 | hudsonbot | Checkin |  | 
| 2015-11-23 21:17 | hudsonbot | Note Added: 0082268 |  | 
	| Notes | 
	| 
 | 
	|  |  | 
	| 
 | 
	|  | 
		
			| The error is in PaymentMethodMulticurrencyActionHandler 
 5246701 [http-8080-2] ERROR org.openbravo.base.exception.OBSecurityException - Entity FinancialMgmtFinAccPaymentMethod is not readable by the user 100
 org.openbravo.base.exception.OBSecurityException: Entity FinancialMgmtFinAccPaymentMethod is not readable by the user 100
 at org.openbravo.dal.security.EntityAccessChecker.checkReadable(EntityAccessChecker.java:343)
 at org.openbravo.dal.service.OBDal.checkReadAccess(OBDal.java:596)
 at org.openbravo.dal.service.OBDal.checkReadAccess(OBDal.java:583)
 at org.openbravo.dal.service.OBDal.createCriteria(OBDal.java:426)
 at org.openbravo.advpaymentmngt.actionHandler.PaymentMethodMulticurrencyActionHandler.getFinancialAccountPaymentMethod(PaymentMethodMulticurrencyActionHandler.java:124)
 |  | 
	| 
 | 
	|  | 
		
			| As F&B Admin: 
 - Go to Role window and select F&B España, S.A - Finance
 In Window Access tab, delete all records but related to Sales Invoice window
 In Report and Process Access, delete record related to Add Payment process
 
 As F&B España Finance:
 
 - Go to Sales Invoice window
 Select any record with Total Outstanding > 0
 Click on Add Payment button
 Realize Add Payment is opened and all fields are filled, and no error is shown.
 |  | 
	| 
 | 
	| 
		
			| (0082085) |  
			| hgbot |  
			| 2015-11-23 13:11 |  | 
		
			| Repository: erp/devel/pi Changeset: 8ae08a1890a369c0121dd0adaa74f6e064b20b22
 Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
 Date: Wed Nov 18 11:15:28 2015 +0100
 URL: http://code.openbravo.com/erp/devel/pi/rev/8ae08a1890a369c0121dd0adaa74f6e064b20b22 [^]
 
 Fixes issue 31386: Error shown in Add Payment
 
 Error shown in Add Payment when role has no access to Financial Account window.
 Add OBContext.setAdminMode(true) in getFinancialAccountPaymentMethod method to avoid it.
 
 ---
 M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/PaymentMethodMulticurrencyActionHandler.java
 ---
 
 |  | 
	| 
 | 
	|  |  | 
	| 
 | 
	|  |  |