Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005588Openbravo ERP01. General setuppublic2008-10-20 11:342008-12-10 21:14
plujan 
gmauleon 
normalminorhave not tried
closedfixed 
5
pi 
 
Core
No
0005588: When using the Admin user created by Initial Client Setup the default role is Org access level
I create a client using the Initial Client Setup. The process creates two users, SampleClientAdmin and SampleClientUser, and two roles, "SampleClient Admin" and "SampleClient User".
Then, if I login with SampleClientUser user, I have by default the role "SampleClient User", but if I login with SampleClientAdmin, it has "SampleClient Admin" and "SampleClient User" roles, but it has by default "SampleClient User" too.
    * Login as Openbravo/openbravo
    * Click on icon "user info" and select the role "System Administrator"
    * Go General Setup -> Client-> Initial client setup
    * Fill the data and chart of accounts:
          # Client: SampleClient
          # Organization: Pamplona
          # Currency: Euro
          # Client Username: SampleClientAdmin (password will be the same as username)
          # Organization Username: SampleClientUser (password will be the same as username)
          # Country: Spain
          # Region: Navarra
          # City: Pamplona
          # Checked options: Business Partner, Product and Project
          # Accounting file: AccountsESOpenbravo_v2.35v2.zip
    * Click OK
Then, login using the two created users SampleClientAdmin and SampleClientUser
There are two solutions:
Is the "SampleClient User" role required for SampleClientAdmin? If only "SampleClient Admin" role is assigned to SampleClientAdmin, then the user could assign the other role by herself.

If both roles are required to be on creation, then the SampleClientAdmin should have "SampleClient Admin" by default.
No tags attached.
blocks defect 0005538 closed gmauleon When using the Admin user created by Initial Client Setup the default role is Org access level 
Issue History
2008-10-20 11:34psarobeNew Issue
2008-10-20 11:34psarobeAssigned To => gmauleon
2008-10-20 11:34psarobeStatusnew => scheduled
2008-11-10 11:05svnbotCheckin
2008-11-10 11:05svnbotNote Added: 0010139
2008-11-10 11:05svnbotStatusscheduled => resolved
2008-11-10 11:05svnbotResolutionopen => fixed
2008-11-10 11:05svnbotsvn_revision => 9831
2008-11-17 14:27svnbotCheckin
2008-11-17 14:27svnbotNote Added: 0010333
2008-11-17 14:27svnbotsvn_revision9831 => 10151
2008-11-20 23:50svnbotCheckin
2008-11-20 23:50svnbotNote Added: 0010491
2008-11-20 23:50svnbotsvn_revision10151 => 10380
2008-11-24 16:06svnbotCheckin
2008-11-24 16:06svnbotNote Added: 0010569
2008-11-24 16:06svnbotsvn_revision10380 => 10469
2008-12-10 21:14psarobeRegression testing => No
2008-12-10 21:14psarobeStatusresolved => closed
2008-12-10 21:14psarobeNote Added: 0011164

Notes
(0010139)
svnbot   
2008-11-10 11:05   
Repository: openbravo
Revision: 9831
Author: gmauleon
Date: 2008-11-10 11:05:02 +0100 (Mon, 10 Nov 2008)

fixes 0005588: When using the Admin user created by Initial Client Setup the default role is Org access level . Now when the sytem admin creates a user a default role is assigned to it.

---
U branches/r2.40/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java
U branches/r2.40/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup_data.xsql
---

https://dev.openbravo.com/websvn/openbravo/?rev=9831&sc=1 [^]
(0010333)
svnbot   
2008-11-17 14:27   
Repository: openbravo
Revision: 10151
Author: rafaroda
Date: 2008-11-17 14:26:58 +0100 (Mon, 17 Nov 2008)

Fixes bug 0005588 Made the fix PostgreSQL compatible.

---
U branches/r2.40/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup_data.xsql
---

https://dev.openbravo.com/websvn/openbravo/?rev=10151&sc=1 [^]
(0010491)
svnbot   
2008-11-20 23:50   
Repository: openbravo
Revision: 10380
Author: villind
Date: 2008-11-20 23:50:42 +0100 (Thu, 20 Nov 2008)

Merged r9831. fixes 0005588: When using the Admin user created by Initial Client Setup the default role is Org access level . Now when the sytem admin creates a user a default role is assigned to it.

---
_U branches/bonware/r2.40/
_U branches/bonware/r2.40/config/setup-tool/
_U branches/bonware/r2.40/eclipse.install.source.launch
_U branches/bonware/r2.40/export.database.launch
U branches/bonware/r2.40/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java
U branches/bonware/r2.40/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup_data.xsql
_U branches/bonware/r2.40/src-core/src/org/openbravo/database/OpenbravoDriverManagerConnectionFactory.java
_U branches/bonware/r2.40/update.database.launch
---

https://dev.openbravo.com/websvn/openbravo/?rev=10380&sc=1 [^]
(0010569)
svnbot   
2008-11-24 16:06   
Repository: openbravo
Revision: 10469
Author: villind
Date: 2008-11-24 16:06:13 +0100 (Mon, 24 Nov 2008)

Merged r10151. Fixes bug 0005588 Made the fix PostgreSQL compatible.

---
_U branches/bonware/r2.40/
_U branches/bonware/r2.40/config/setup-tool/
_U branches/bonware/r2.40/eclipse.install.source.launch
_U branches/bonware/r2.40/export.database.launch
U branches/bonware/r2.40/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup_data.xsql
_U branches/bonware/r2.40/src-core/src/org/openbravo/database/OpenbravoDriverManagerConnectionFactory.java
_U branches/bonware/r2.40/update.database.launch
---

https://dev.openbravo.com/websvn/openbravo/?rev=10469&sc=1 [^]
(0011164)
psarobe   
2008-12-10 21:14   
Now you have by default Sample Admin role