Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038558Openbravo ERP07. Sales managementpublic2018-05-16 10:002018-05-17 21:41
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR18Q3 
aferraz
Core
No
0038558: Cannot add an orphan line in Return From Customer window if the role does not have access to Product window
Cannot add an orphan line in Return From Customer window if the role does not have access to Product window
As group admin role:
   Set 'RM Allow Orphan Line' preference to Y
   Log out and log in
   Create a Manual Role
   Provide it with access to 'Return From Customer' window and Region Norte organization
   Assign it to Openbravo User
   Log out and log in with the new role
   Create a Return From Customer header
   Insert Orphan line
   Select a product and add Returned Quantity
   Check the following error is shown:
      org.openbravo.base.exception.OBSecurityException: Entity Product is not directly readable, only id and identifier properties are readable, property Product.returnable is neither of these.
No tags attached.
related to defect 0038557 closed AtulOpenbravo Cannot select an orphan line in Return Material Receipt if product has Alternate UOM defined 
Issue History
2018-05-16 10:00ngarciaNew Issue
2018-05-16 10:00ngarciaAssigned To => Triage Finance
2018-05-16 10:00ngarciaModules => Core
2018-05-16 10:00ngarciaResolution time => 1528236000
2018-05-16 10:00ngarciaTriggers an Emergency Pack => No
2018-05-16 10:16ngarciaIssue Monitored: networkb
2018-05-16 10:29aferrazAssigned ToTriage Finance => AtulOpenbravo
2018-05-16 10:30aferrazRelationship addedrelated to 0038557
2018-05-16 13:50AtulOpenbravoStatusnew => scheduled
2018-05-16 13:50AtulOpenbravoNote Added: 0104541
2018-05-17 10:10hgbotCheckin
2018-05-17 10:10hgbotNote Added: 0104556
2018-05-17 10:10hgbotStatusscheduled => resolved
2018-05-17 10:10hgbotResolutionopen => fixed
2018-05-17 10:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/59a5aec24377854e0f34333f1ca15e4b1d42e8d9 [^]
2018-05-17 10:12aferrazReview Assigned To => aferraz
2018-05-17 10:12aferrazNote Added: 0104558
2018-05-17 10:12aferrazStatusresolved => closed
2018-05-17 10:12aferrazFixed in Version => 3.0PR18Q3
2018-05-17 21:41hudsonbotCheckin
2018-05-17 21:41hudsonbotNote Added: 0104577

Notes
(0104541)
AtulOpenbravo   
2018-05-16 13:50   
Test Plan

- Login as group admin role:
- Set 'RM Allow Orphan Line' preference to Y
- Log out and log in
- Create a Manual Role, Level = Client + Organization
- Provide it with access to 'Return From Customer' window and Region Norte organization, Assign it to Openbravo User
- Log out and log in with the new role
- Create a Return From Customer header and Using Insert Orphan line
- Select a product and add Returned Quantity
- Click ok, Realize that record is inserted successfully in Lines.
(0104556)
hgbot   
2018-05-17 10:10   
Repository: erp/devel/pi
Changeset: 59a5aec24377854e0f34333f1ca15e4b1d42e8d9
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Wed May 16 17:16:05 2018 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/59a5aec24377854e0f34333f1ca15e4b1d42e8d9 [^]

Fixes Issue 0038558: Cannot add an orphan line in Return
From Customer window if the role does not have access to
Product window

Use setAdminMode prior to access product object in
insert RM orphan line process.

---
M src/org/openbravo/erpCommon/ad_actionButton/RMInsertOrphanLine.java
---
(0104558)
aferraz   
2018-05-17 10:12   
Code review + Testing OK
(0104577)
hudsonbot   
2018-05-17 21:41   
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/4e28963f0fe6 [^]
Maturity status: Test