Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017970Openbravo ERP01. General setuppublic2011-07-12 14:412011-08-23 13:32
dalsasua 
jonalegriaesarte 
normalminoralways
closedfixed 
20Ubuntu 10.10
2.50MP31 
2.50MP312.50MP33 
Google Chrome, Internet Explorer, Mozilla Firefox
Core
No
0017970: Enterprise Module Management is not working fine with * organization.
- Enterprise Module Management provides modules that shouldn't, as are already applied in * organization.
- Furthermore: accounting module shouldn't appear to be applied.
- 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.
org.openbravo.erpCommon.modules.ModuleReferenceDataOrgTree_data.selectOrg() shouldn't provide the organization, or org.openbravo.erpCommon.modules.ModuleReferenceDataOrgTree.filterAlreadyApplied() should remove it from the data.

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
           ]]>
No tags attached.
blocks defect 00179693.0MP3 closed jecharri Enterprise Module Management is not working fine with * organization. 
Issue History
2011-07-12 14:48dalsasuaTypedefect => backport
2011-07-12 14:48dalsasuafix_in_branch => 2.50
2011-07-14 11:47dalsasuaWeb browserGoogle Chrome, Internet Explorer, Mozilla Firefox => Google Chrome, Internet Explorer, Mozilla Firefox
2011-07-14 11:47dalsasuaDescription Updatedbug_revision_view_page.php?rev_id=2412#r2412
2011-07-14 11:47dalsasuaProposed Solution updated
2011-07-14 12:15dalsasuaIssue Monitored: networkb
2011-07-20 18:08dalsasuaAssigned Todalsasua => jonalegriaesarte
2011-08-03 17:39hgbotCheckin
2011-08-03 17:39hgbotNote Added: 0039838
2011-08-03 17:39hgbotStatusscheduled => resolved
2011-08-03 17:39hgbotResolutionopen => fixed
2011-08-03 17:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/0e07b2b06b27f79346a2c8c5ba95940d652e528c [^]
2011-08-10 16:45hgbotCheckin
2011-08-10 16:45hgbotNote Added: 0040080
2011-08-10 16:45hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/stable/2.50/rev/0e07b2b06b27f79346a2c8c5ba95940d652e528c [^] => http://code.openbravo.com/erp/stable/2.50/rev/e87eb616f545f7fddf1f8f3874525feef04d2d12 [^]
2011-08-17 11:59jonalegriaesarteStatusresolved => new
2011-08-17 11:59jonalegriaesarteResolutionfixed => open
2011-08-17 12:00jonalegriaesarteStatusnew => scheduled
2011-08-17 12:00jonalegriaesartefix_in_branch2.50 => pi
2011-08-17 12:08jonalegriaesarteWeb browserGoogle Chrome, Internet Explorer, Mozilla Firefox => Google Chrome, Internet Explorer, Mozilla Firefox
2011-08-17 12:08jonalegriaesarteSeveritymajor => minor
2011-08-17 12:08jonalegriaesartefix_in_branchpi =>
2011-08-22 15:12hgbotCheckin
2011-08-22 15:12hgbotNote Added: 0040390
2011-08-22 15:12hgbotStatusscheduled => resolved
2011-08-22 15:12hgbotResolutionopen => fixed
2011-08-22 15:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/stable/2.50/rev/e87eb616f545f7fddf1f8f3874525feef04d2d12 [^] => http://code.openbravo.com/erp/stable/2.50/rev/c1a592b54b9d909ca70781e008c605fd12b09b61 [^]
2011-08-23 13:32jecharriStatusresolved => closed
2011-08-23 13:32jecharriFixed in Version => 2.50MP33

Notes
(0039838)
hgbot   
2011-08-03 17:39   
Repository: erp/stable/2.50
Changeset: 0e07b2b06b27f79346a2c8c5ba95940d652e528c
Author: Jon Alegría <jon.alegria <at> openbravo.com>
Date: Wed Aug 03 18:09:02 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/0e07b2b06b27f79346a2c8c5ba95940d652e528c [^]

Fixes issue 0017970: Enterprise Module Management is not working fine with *
organization.

---
M src/org/openbravo/erpCommon/modules/ModuleReferenceDataOrgTree_data.xsql
---
(0040080)
hgbot   
2011-08-10 16:45   
Repository: erp/stable/2.50
Changeset: e87eb616f545f7fddf1f8f3874525feef04d2d12
Author: Jon Alegría <jon.alegria <at> openbravo.com>
Date: Wed Aug 10 17:14:45 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/e87eb616f545f7fddf1f8f3874525feef04d2d12 [^]

Fixes issue 0017970: Enterprise Module Management is not working fine with *
organization.

---
M src/org/openbravo/erpCommon/modules/ModuleReferenceDataOrgTree_data.xsql
---
(0040390)
hgbot   
2011-08-22 15:12   
Repository: erp/stable/2.50
Changeset: c1a592b54b9d909ca70781e008c605fd12b09b61
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Mon Aug 22 09:50:52 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/c1a592b54b9d909ca70781e008c605fd12b09b61 [^]

Fixes issue 17970: Ent.Mod.Management is not working ok

---
M src/org/openbravo/erpCommon/modules/ModuleReferenceDataOrgTree_data.xsql
---