Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034829Openbravo ERP01. General setuppublic2016-12-23 19:272016-12-30 13:45
Production - Confirmed Stable
3.0PR16Q3 [^]
0034829: 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 [^]
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.
blocks defect 0034823 closed inigosanchez Can't add lines in Requisition with role F&B España, S.A - Employee 
Issue History
2016-12-29 15:17inigosanchezTypedefect => backport
2016-12-29 15:17inigosanchezTarget Version => 3.0PR16Q4.1
2016-12-30 00:43hgbotCheckin
2016-12-30 00:43hgbotNote Added: 0093066
2016-12-30 00:43hgbotStatusscheduled => resolved
2016-12-30 00:43hgbotResolutionopen => fixed
2016-12-30 00:43hgbotFixed in SCM revision => [^]
2016-12-30 10:00inigosanchezReview Assigned To => AugustoMauch
2016-12-30 13:44AugustoMauchNote Added: 0093079
2016-12-30 13:44AugustoMauchStatusresolved => closed
2016-12-30 13:44AugustoMauchFixed in Version => 3.0PR16Q3.3
2016-12-30 13:45AugustoMauchFixed in Version3.0PR16Q3.3 => 3.0PR16Q4.1

2016-12-30 00:43   
Repository: erp/backports/3.0PR16Q4.1
Changeset: 801e5057180ce207d0b406b206cb997dff173e1d
Author: Inigo Sanchez <inigo.sanchez <at>>
Date: Fri Dec 30 00:41:56 2016 +0100
URL: [^]

Fixed issue 34829: 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

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/
2016-12-30 13:44   
Code reviewed and verified