Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034823Openbravo ERP01. General setuppublic2016-12-23 19:272016-12-30 16:39
rbianchini 
inigosanchez 
normalmajoralways
closedfixed 
5
3.0PR16Q3.3 
3.0PR17Q1 
AugustoMauch
Core
Production - Confirmed Stable
2016-04-28
3.0PR16Q3
https://code.openbravo.com/erp/devel/pi/rev/e8c0df5664deca28ef28bc90ef088d6ec532043c [^]
No
0034823: Can't add lines in Requisition with role F&B España, S.A - Employee
If you log in ERP Version < 16Q3, and switch role to F&B España, S.A - Employee, you are able to create Requisition and Requisition's lines.
If you log in ERP Version > 16Q3, and switch role to F&B España, S.A - Employee, you are able to create Requisition but Requisition's lines, the products are not listed.
Adding access to the tables m_product* to the role doesn't solve the problem.
You have to add permissions to product window in order to solve the problem.
With this configuration, a new menu entry <product> is shown, but the product window is not accesible becouse permissions (Error
With your current role and settings, you cannot view this information)
1 - Log in livebuilds https://livebuilds.openbravo.com/erp_mp_3.0PR16Q3.3 [^]
2 - switch to F&B España, S.A - Employee role
3 - Open Requisition window
4 - Create a new header
5 - Crate a new line
6 - Realize that you can't perform step 5 becouse no product is listed.
No tags attached.
related to feature request 00327283.0PR16Q3 closed inigosanchez Standard datasources should check entity access. 
depends on backport 00348293.0PR16Q4.1 closed inigosanchez Can't add lines in Requisition with role F&B España, S.A - Employee 
depends on backport 00348303.0PR16Q3.4 closed inigosanchez Can't add lines in Requisition with role F&B España, S.A - Employee 
caused by defect 00327953.0PR16Q3 closed inigosanchez G/L Item combo appears empty in Add Payment process definition 
Issue History
2016-12-23 19:27rbianchiniNew Issue
2016-12-23 19:27rbianchiniAssigned To => Triage Finance
2016-12-23 19:27rbianchiniModules => Core
2016-12-23 19:27rbianchiniResolution time => 1484276400
2016-12-23 19:27rbianchiniRegression level => Production - Confirmed Stable
2016-12-23 19:27rbianchiniRegression introduced in release => 3.0PR16Q3
2016-12-23 19:27rbianchiniTriggers an Emergency Pack => No
2016-12-23 21:37markmm82Assigned ToTriage Finance => AtulOpenbravo
2016-12-26 09:36AtulOpenbravoStatusnew => scheduled
2016-12-26 15:59AtulOpenbravoNote Added: 0092993
2016-12-27 13:52AtulOpenbravoAssigned ToAtulOpenbravo => platform
2016-12-27 23:41inigosanchezAssigned Toplatform => inigosanchez
2016-12-27 23:43inigosanchezResolution time1484276400 => 1484262000
2016-12-27 23:43inigosanchezRegression date => 2016-04-28
2016-12-27 23:43inigosanchezRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/e8c0df5664deca28ef28bc90ef088d6ec532043c [^]
2016-12-29 15:13inigosanchezRelationship addedcaused by 0032795
2016-12-29 15:13inigosanchezRelationship addedrelated to 0032728
2016-12-29 15:15inigosanchezStatusscheduled => acknowledged
2016-12-29 15:17inigosanchezStatusacknowledged => scheduled
2016-12-30 00:33hgbotCheckin
2016-12-30 00:33hgbotNote Added: 0093064
2016-12-30 00:33hgbotStatusscheduled => resolved
2016-12-30 00:33hgbotResolutionopen => fixed
2016-12-30 00:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/68aee6dfac93298c56f466d201e51138700e9c93 [^]
2016-12-30 00:55hgbotCheckin
2016-12-30 00:55hgbotNote Added: 0093067
2016-12-30 05:45hudsonbotCheckin
2016-12-30 05:45hudsonbotNote Added: 0093068
2016-12-30 10:00inigosanchezReview Assigned To => AugustoMauch
2016-12-30 10:44hgbotCheckin
2016-12-30 10:44hgbotNote Added: 0093072
2016-12-30 10:48AugustoMauchNote Added: 0093073
2016-12-30 10:48AugustoMauchStatusresolved => closed
2016-12-30 10:48AugustoMauchFixed in Version => 3.0PR17Q1
2016-12-30 16:39hudsonbotCheckin
2016-12-30 16:39hudsonbotNote Added: 0093082
2016-12-30 16:39hudsonbotCheckin
2016-12-30 16:39hudsonbotNote Added: 0093083

Notes
(0092993)
AtulOpenbravo   
2016-12-26 15:59   
Solution:-
- Login as F&B International Group Admin.
- Go to Role Access window, Select Employee Role.
- Add record by selecting table "M_Product_Stock_V",
  set Read Only = Yes, Exclude = No.

- Change profile to Employee Role.
- Go to Requisition Window. Create Header.
- Go to Lines Tab, Try to select Product.
- Check that List of Product appears.
(0093064)
hgbot   
2016-12-30 00:33   
Repository: erp/devel/pi
Changeset: 68aee6dfac93298c56f466d201e51138700e9c93
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Fri Dec 30 00:31:59 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/68aee6dfac93298c56f466d201e51138700e9c93 [^]

Fixed issue 34823: Product selector of the Requisition subtab appears empty

The problem was introduced in a refactor of checkFetchDatasourceAccess() method of
BaseDataSourceService class. This refactor change the way in wich entities of
selectors were calculated. It is important to note that the refactor is not bad in
itself. The problem was appeared because it was forgotten to do an additional thing.

Before this refactor in some cases entities were not calculated properly. For example
in the subtab of Requisition window there are a complex selector of product. (Reference:
Product Complete - Parent Reference: Search). In this example, checkFetchDatasourceAccess
method was checked Product entity instead of ProductStockView. The refactor fixed this
problem.

Otherwise, the refactor missed to take into account entities of complex defined selectors
as derivedReadableEntities. To solve the problem now, when initialize() method of
EntityAccessChecker class calculates permissions, it will take into account this entities.

---
M src/org/openbravo/dal/security/EntityAccessChecker.java
---
(0093067)
hgbot   
2016-12-30 00:55   
Repository: erp/devel/pi
Changeset: c1b4f96c83787d2c111546379231de27b3cb40eb
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Fri Dec 30 00:54:27 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c1b4f96c83787d2c111546379231de27b3cb40eb [^]

Related with issue 34823: Added new test case to DataSourceSecurity

- Added F&B España, S.A - Employee role to the test class.
- Added a new test case in order to cover this regression. Requisition
Window > Requisition Lines > Product Complete Selector.

---
M src-test/src/org/openbravo/test/datasource/DataSourceSecurity.java
---
(0093068)
hudsonbot   
2016-12-30 05:45   
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/c951f095b5d3 [^]
Maturity status: Test
(0093072)
hgbot   
2016-12-30 10:44   
Repository: erp/devel/pi
Changeset: 261174abcf4ca647a7fcbcfc32a0c6dde2d898e1
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Fri Dec 30 10:43:15 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/261174abcf4ca647a7fcbcfc32a0c6dde2d898e1 [^]

Related with issue 34823: Improve comments

---
M src-test/src/org/openbravo/test/datasource/DataSourceSecurity.java
M src/org/openbravo/dal/security/EntityAccessChecker.java
---
(0093073)
AugustoMauch   
2016-12-30 10:48   
Code reviewed and verified in pi@987dedc02635
(0093082)
hudsonbot   
2016-12-30 16:39   
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/7f58c9165bf6 [^]
Maturity status: Test
(0093083)
hudsonbot   
2016-12-30 16:39   
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/7f58c9165bf6 [^]
Maturity status: Test