Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021777Openbravo ERP01. General setuppublic2012-09-27 17:022012-11-06 13:31
VictorVillar 
ioritzCia 
urgentmajoralways
closedfixed 
5
pi 
3.0MP17 
VictorVillar
Core
No
0021777: role without permission for a new organization in some circumstances
role without permission for a new organization in some circumstances
As group admin role,
Go to Role window,
  select international group admin role,
    Manual= N
Go to Initial Organization setup window
   Create a new Org, called TEST, without role and without accounting.
Complete it and create it.

Go to Role window again,
 select international group admin role,
 Go to Org Access tab
   Try to create the access to this new Organization TEST, but do NOT do it.
Only realise that TEST appears in the organization combo.

Log out and log in.

Go to organization window,
  Select TEST olrganization and try to launch the Set as Ready process. An error appears: With your current role you do not have permission.

If you go to Role window again and try to give access to International Group Admin role about TEST organization, you cannot do it, because it will not appear in the organization combo.

the problem is that the process InitialOrgSetup.java (line 75) add to the session variable #USER_ORG (list of organizations that the currently role has access) the org_id of the new organization created.
This list is the information used for the combo, (line 431 of UIDefinition.java)
No tags attached.
related to defect 00261093.0PR14Q3 closed guillermogil Error in log: SelectorDataSourceFilter - Error evaluating filter expression: 
Issue History
2012-09-27 17:02VictorVillarNew Issue
2012-09-27 17:02VictorVillarAssigned To => dmiguelez
2012-09-27 17:02VictorVillarModules => Core
2012-09-27 17:02VictorVillarResolution time => 1287784800
2012-09-27 17:02VictorVillarIssue Monitored: networkb
2012-09-27 17:15dmiguelezAssigned Todmiguelez => jonalegriaesarte
2012-10-01 16:22jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2012-10-24 10:54ioritzCiaStatusnew => scheduled
2012-10-24 10:54ioritzCiafix_in_branch => pi
2012-11-02 08:48hgbotCheckin
2012-11-02 08:48hgbotNote Added: 0053967
2012-11-02 08:48hgbotStatusscheduled => resolved
2012-11-02 08:48hgbotResolutionopen => fixed
2012-11-02 08:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/37da9a5ba373e89041f459149bdcf924992083ec [^]
2012-11-02 12:24hgbotCheckin
2012-11-02 12:24hgbotNote Added: 0053978
2012-11-06 10:47hudsonbotCheckin
2012-11-06 10:47hudsonbotNote Added: 0054030
2012-11-06 10:47hudsonbotCheckin
2012-11-06 10:47hudsonbotNote Added: 0054034
2012-11-06 13:31VictorVillarReview Assigned To => VictorVillar
2012-11-06 13:31VictorVillarNote Added: 0054043
2012-11-06 13:31VictorVillarStatusresolved => closed
2014-05-14 09:09guillermogilRelationship addedrelated to 0026495
2014-05-14 09:10guillermogilRelationship deletedrelated to 0026495
2014-05-14 09:10guillermogilRelationship addedrelated to 0026109

Notes
(0053967)
hgbot   
2012-11-02 08:48   
Repository: erp/devel/pi
Changeset: 37da9a5ba373e89041f459149bdcf924992083ec
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Fri Nov 02 08:34:35 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/37da9a5ba373e89041f459149bdcf924992083ec [^]

Fixes issue 21777: role without permission for a new organization in some circumstances.

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/OBCLKER_UIDEFINITION.xml
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
M src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml
---
(0053978)
hgbot   
2012-11-02 12:24   
Repository: erp/devel/pi
Changeset: 9238a973578de6e0a13f3590b545c41673b36878
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Fri Nov 02 12:04:04 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9238a973578de6e0a13f3590b545c41673b36878 [^]

Related to issue 21777: ad_model_object and ad_model_object_mapping not needed.

---
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
---
(0054030)
hudsonbot   
2012-11-06 10:47   
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/905762a34c04 [^]

Maturity status: Test
(0054034)
hudsonbot   
2012-11-06 10:47   
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/905762a34c04 [^]

Maturity status: Test
(0054043)
VictorVillar   
2012-11-06 13:31   
Verified