Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0032812 | Openbravo ERP | A. Platform | public | 2016-04-29 10:18 | 2016-06-17 19:37 | |||||||
Reporter | aferraz | |||||||||||
Assigned To | alostale | |||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 30 | OS Version | Professional Appliance | ||||||||
Product Version | ||||||||||||
Target Version | 3.0PR16Q3 | Fixed in Version | 3.0PR16Q3 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | caristu | |||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0032812: When filtering in a process definition selector, ad_org_id parameter should be used if exists instead of login organization | |||||||||||
Description | When a parameter inside a process definition has a validation referencing ad_org_id parameter of the same process definition, datasource is also filtering by login organization (In the request an _org parameter is sent with the context organization UUID). This affects to the validation as it changes its original condition. | |||||||||||
Steps To Reproduce | - Login as System Admin. - Install "Multi-Dimensional Profit And Loss Report" module and dependencies. - Navigate to "Multi-Dimensional Profit And Loss Process" process definition. - Select "General Ledger" parameter. - Navigate to "ElementsAccessibleByOrganization" validation and check the code: "(ad_isorgincluded('" + OB.getParameters().get('AD_Org_ID') + "',e.organization.id, e.client.id) <> -1 or ad_isorgincluded(e.organization.id,'" + OB.getParameters().get('AD_Org_ID') + "', e.client.id) <> -1)" - Login as F&B Admin and "F&B España - Región Norte" organization. - Launch "Multi-Dimensional Profit And Loss" report. - Select "F&B España - Región Norte" organization and realize both "F&B España, S.A. US/A/Euro" and "F&B International Group US/A/US Dollar" general ledgers appear in the combo. This is correct. - Select "F&B US East Coast" organization and realize only "F&B International Group US/A/US Dollar" general ledger appears in the combo. This is correct. - Login as F&B Admin and "F&B US East Coast" organization. - Launch Multi-Dimensional Profit And Loss report. - Select "F&B US East Coast" organization and realize only "F&B International Group US/A/US Dollar" general ledger appears in the combo. This is correct. - Select "F&B España - Región Norte" organization and realize only "F&B International Group US/A/US Dollar" general ledger appears in the combo. This is NOT correct as it should appear both "F&B España, S.A. US/A/Euro" and "F&B International Group US/A/US Dollar" general ledgers. | |||||||||||
Proposed Solution | Problem is that a filter by login organization is being added to general ledger validation code. In case an ad_org_id parameter exists in the process definition, it should be used instead of login organization. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-04-29 10:18 | aferraz | New Issue | ||||||||||
2016-04-29 10:18 | aferraz | Assigned To | => platform | |||||||||
2016-04-29 10:18 | aferraz | Modules | => Core | |||||||||
2016-04-29 10:18 | aferraz | Triggers an Emergency Pack | => No | |||||||||
2016-04-29 10:22 | aferraz | Relationship added | related to 0032535 | |||||||||
2016-04-29 10:24 | caristu | Description Updated | bug_revision_view_page.php?rev_id=11904#r11904 | |||||||||
2016-04-29 10:24 | caristu | Description Updated | bug_revision_view_page.php?rev_id=11905#r11905 | |||||||||
2016-05-02 12:25 | maite | Resolution time | => 1462399200 | |||||||||
2016-05-03 09:36 | alostale | Status | new => scheduled | |||||||||
2016-05-03 09:36 | alostale | Assigned To | platform => alostale | |||||||||
2016-05-03 14:02 | hgbot | Checkin | ||||||||||
2016-05-03 14:02 | hgbot | Note Added: 0086155 | ||||||||||
2016-05-03 14:02 | hgbot | Status | scheduled => resolved | |||||||||
2016-05-03 14:02 | hgbot | Resolution | open => fixed | |||||||||
2016-05-03 14:02 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/675c7958899ad6cf970fa1347ce4123446ec1fda [^] | |||||||||
2016-05-03 14:03 | alostale | Review Assigned To | => caristu | |||||||||
2016-05-05 13:37 | caristu | Note Added: 0086213 | ||||||||||
2016-05-05 13:37 | caristu | Status | resolved => closed | |||||||||
2016-05-05 13:37 | caristu | Fixed in Version | => 3.0PR16Q3 | |||||||||
2016-06-17 19:37 | hudsonbot | Checkin | ||||||||||
2016-06-17 19:37 | hudsonbot | Note Added: 0087511 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|