Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028895Openbravo ERP07. Sales managementpublic2015-02-09 13:572015-05-07 22:17
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q3pi 
umartirena
Core
No
0028895: Cannot process an invoice if the role does not have access to FIN_Payment and the business partner has credit left
Cannot process an invoice if the role does not have access to FIN_Payment and the business partner has credit left
As group admin role:
   Create a Payment In in which you generate credit to a Business Partner
   Go to Role window and remove Payment In and Payment Out records from Window Access tab
   Log out and log in again
   Create a Sales Invoice to that Business Partner and try to complete it
   Check you get the following error message:
      "org.openbravo.base.exception.OBSecurityException: Entity FIN_Payment is not directly readable, only id and identifier properties are readable, property FIN_Payment.description is neither of these."
No tags attached.
Issue History
2015-02-09 13:57ngarciaNew Issue
2015-02-09 13:57ngarciaAssigned To => Sandrahuguet
2015-02-09 13:57ngarciaModules => Core
2015-02-09 13:57ngarciaResolution time => 1426201200
2015-02-09 13:57ngarciaTriggers an Emergency Pack => No
2015-02-09 13:59ngarciaTarget Version => 3.0PR15Q2
2015-02-09 13:59ngarciaIssue Monitored: networkb
2015-02-23 13:30jonalegriaesarteTarget Version3.0PR15Q2 => 3.0PR15Q3
2015-03-02 15:50fsoto82Statusnew => scheduled
2015-03-02 15:50fsoto82Assigned ToSandrahuguet => fsoto82
2015-03-02 15:50fsoto82fix_in_branch => pi
2015-04-28 10:31AtulOpenbravoAssigned Tofsoto82 => AtulOpenbravo
2015-04-28 10:32AtulOpenbravoNote Added: 0076814
2015-04-29 11:32hgbotCheckin
2015-04-29 11:32hgbotNote Added: 0076864
2015-04-29 11:32hgbotStatusscheduled => resolved
2015-04-29 11:32hgbotResolutionopen => fixed
2015-04-29 11:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cb1a6759ce3cd025ee3f13d61fe4116af5672a8e [^]
2015-04-29 11:33umartirenaReview Assigned To => umartirena
2015-04-29 11:33umartirenaNote Added: 0076865
2015-04-29 11:33umartirenaStatusresolved => closed
2015-04-29 11:33umartirenaFixed in Version => pi
2015-05-07 22:17hudsonbotCheckin
2015-05-07 22:17hudsonbotNote Added: 0077182

Notes
(0076814)
AtulOpenbravo   
2015-04-28 10:32   
Test Plan
- Login as group admin role:
- Create a Payment In in which you generate credit to a Business Partner.
- Go to Role window and remove Payment In and Payment Out records from Window Access tab
- Log out and log in again.
- Create a Sales Invoice to that Business Partner and try to complete it
- Credit Pop Up appears without any error.
(0076864)
hgbot   
2015-04-29 11:32   
Repository: erp/devel/pi
Changeset: cb1a6759ce3cd025ee3f13d61fe4116af5672a8e
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Apr 28 14:05:35 2015 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/cb1a6759ce3cd025ee3f13d61fe4116af5672a8e [^]

Fixes Issue 28895:Cannot process an invoice if the role does not have access
to FIN_Payment and the business partner has credit left

Changed OBContext to Admin mode when accessing Description field of Payment
and lastly restored it back again.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/ProcessInvoice.java
---
(0076865)
umartirena   
2015-04-29 11:33   
Code Review + Testing OK
(0077182)
hudsonbot   
2015-05-07 22:17   
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/a1817f84bd8b [^]
Maturity status: Test