Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0017969 | Openbravo ERP | 01. General setup | public | 2011-07-12 14:41 | 2012-02-15 15:48 | ||||||||||||||
Reporter | dalsasua | ||||||||||||||||||
Assigned To | jecharri | ||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 20 | OS Version | Ubuntu 10.10 | |||||||||||||||
Product Version | 3.0MP1 | ||||||||||||||||||
Target Version | 3.0MP3 | Fixed in Version | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | |||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | Google Chrome, Internet Explorer, Mozilla Firefox | ||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0017969: Enterprise Module Management is not working fine with * organization. | ||||||||||||||||||
Description | - Enterprise Module Management provides modules that shouldn't, as are already applied in * organization. - Furthermore: accounting module shouldn't appear to be applied. | ||||||||||||||||||
Steps To Reproduce | - As System Admin: - go to Initial Client Setup - choose as name 'Cliente' - do NOT choose any reference data item (datasets). Specially, do NOT activate Initial Setup dataset from core module. - change role to the new client - run initial organization setup, and create a new legal entity withOUT acconting, with name Org - set Org organization as ready - go to enterprise module management - apply core dataset to * organization - go to Module window - change version for module Core to a higher version number (activating in development flag) - go to enterprise module management - choose Org organization - realize that the core module is provided to be applied ** This is wrong: core dataset has been already applied to * organization, so shouldn't be allowed to apply it to any other organization of the client, as all of them are bellow * organization in the organizational tree. | ||||||||||||||||||
Proposed Solution | diff --git a/src/org/openbravo/erpCommon/modules/ModuleReferenceDataOrgTree_data.xsql b/src/org/openbravo/erpCommon/modules/ModuleReferenceDataOrgTree_data.xsql --- a/src/org/openbravo/erpCommon/modules/ModuleReferenceDataOrgTree_data.xsql +++ b/src/org/openbravo/erpCommon/modules/ModuleReferenceDataOrgTree_data.xsql @@ -53,12 +53,12 @@ WHERE M.TYPE = 'M' AND M.ISACTIVE = 'Y' AND 1=1 - AND ((EXISTS (SELECT 1 FROM ad_dataset + AND (EXISTS (SELECT 1 FROM ad_dataset WHERE M.ad_module_id = AD_DATASET.ad_module_id AND AD_DATASET.ACCESSLEVEL IN ('3','1') AND AD_DATASET.EXPORTALLOWED = 'Y') - AND M.HASREFERENCEDATA = 'Y') - OR M.haschartofaccounts = 'Y') + AND M.HASREFERENCEDATA = 'Y' + AND M.HASCHARTOFACCOUNTS = 'N') AND NOT EXISTS (SELECT 1 FROM AD_CLIENTMODULE CM WHERE CM.ad_module_id = M.ad_module_id AND AD_CLIENT_ID = ?) @@ -87,6 +87,7 @@ AND 1=1 AND M.HASREFERENCEDATA = 'Y' AND EXPORTALLOWED = 'Y' + AND M.HASCHARTOFACCOUNTS = 'N' AND NOT EXISTS (SELECT 1 FROM AD_CLIENTMODULE CM WHERE CM.ad_module_id = M.ad_module_id AND CM.AD_CLIENT_ID = ? @@ -97,7 +98,7 @@ AND (AD_IsOrgIncluded(?, OM.AD_Org_ID, OM.AD_Client_ID)<>-1 OR AD_IsOrgIncluded(OM.AD_Org_ID, ?, OM.AD_Client_ID)<>-1) AND OM.VERSION = M.VERSION) - AND (((? <> '0') AND AD_DATASET.ACCESSLEVEL IN ('1', '3')) + AND (((? <> '0') AND AD_DATASET.ACCESSLEVEL IN ('1')) OR ((? = '0') AND AD_DATASET.ACCESSLEVEL IN ('3', '6')))) A ORDER BY A.SeqNo ]]> | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2011-07-12 14:41 | dalsasua | New Issue | |||||||||||||||||
2011-07-12 14:41 | dalsasua | Assigned To | => dalsasua | ||||||||||||||||
2011-07-12 14:41 | dalsasua | Web browser | => Google Chrome, Internet Explorer, Mozilla Firefox | ||||||||||||||||
2011-07-12 14:41 | dalsasua | Modules | => Core | ||||||||||||||||
2011-07-12 14:41 | dalsasua | Resolution time | => 1312581600 | ||||||||||||||||
2011-07-12 14:48 | dalsasua | Status | new => scheduled | ||||||||||||||||
2011-07-12 14:48 | dalsasua | fix_in_branch | => pi | ||||||||||||||||
2011-07-14 12:15 | dalsasua | Web browser | Google Chrome, Internet Explorer, Mozilla Firefox => Google Chrome, Internet Explorer, Mozilla Firefox | ||||||||||||||||
2011-07-14 12:15 | dalsasua | fix_in_branch | pi => | ||||||||||||||||
2011-07-14 12:15 | dalsasua | Description Updated | bug_revision_view_page.php?rev_id=2414#r2414 | ||||||||||||||||
2011-07-14 12:15 | dalsasua | Proposed Solution updated | |||||||||||||||||
2011-07-14 12:15 | dalsasua | Issue Monitored: networkb | |||||||||||||||||
2011-07-20 18:08 | dalsasua | Assigned To | dalsasua => jonalegriaesarte | ||||||||||||||||
2011-08-22 09:47 | jonalegriaesarte | Web browser | Google Chrome, Internet Explorer, Mozilla Firefox => Google Chrome, Internet Explorer, Mozilla Firefox | ||||||||||||||||
2011-08-22 09:47 | jonalegriaesarte | version | 2.50MP31 => 3.0MP1 | ||||||||||||||||
2011-08-22 09:47 | jonalegriaesarte | Target Version | 2.50MP31 => 3.0MP3 | ||||||||||||||||
2011-08-23 08:03 | hgbot | Checkin | |||||||||||||||||
2011-08-23 08:03 | hgbot | Note Added: 0040432 | |||||||||||||||||
2011-08-23 08:03 | hgbot | Status | scheduled => resolved | ||||||||||||||||
2011-08-23 08:03 | hgbot | Resolution | open => fixed | ||||||||||||||||
2011-08-23 08:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1c281d64b1dc367eb4922c7e43361ebad814d91b [^] | ||||||||||||||||
2011-08-24 01:08 | hudsonbot | Checkin | |||||||||||||||||
2011-08-24 01:08 | hudsonbot | Note Added: 0040465 | |||||||||||||||||
2011-09-01 09:24 | jonalegriaesarte | Assigned To | jonalegriaesarte => jecharri | ||||||||||||||||
2011-09-01 09:24 | jonalegriaesarte | Note Added: 0040647 | |||||||||||||||||
2011-09-01 09:24 | jonalegriaesarte | Status | resolved => closed | ||||||||||||||||
2011-09-01 09:24 | jonalegriaesarte | Fixed in Version | => 3.0MP3 | ||||||||||||||||
2012-02-14 18:59 | psarobe | Status | closed => new | ||||||||||||||||
2012-02-14 18:59 | psarobe | Resolution | fixed => open | ||||||||||||||||
2012-02-14 18:59 | psarobe | Fixed in Version | 3.0MP3 => | ||||||||||||||||
2012-02-15 15:47 | psarobe | Status | new => scheduled | ||||||||||||||||
2012-02-15 15:47 | psarobe | fix_in_branch | => pi | ||||||||||||||||
2012-02-15 15:48 | psarobe | Status | scheduled => resolved | ||||||||||||||||
2012-02-15 15:48 | psarobe | Resolution | open => fixed | ||||||||||||||||
2012-02-15 15:48 | psarobe | Status | resolved => closed | ||||||||||||||||
2012-02-15 15:49 | psarobe | Relationship added | related to 0019769 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|