Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002342Openbravo ERPA. Platformpublic2007-12-04 20:212008-11-26 13:59
jpabloae 
gorkaion 
normalminoralways
closedfixed 
5
 
2.40alpha-r2 
No
Core
No
0002342: No menu without sampledata in database creation
If one creates the database (ant create.database) commenting the sampledata line, then after logging in there are only 2 menu elements: a link to openbravo.com and "Information". So one can't do anything (create a client, etc).

Steps to reproduce:

1. Edit database/build.xml and comment the sampledata part:

  <target name="create.database">
    <antcall target="clean.database.${bbdd.rdbms}"/>
    <chmod dir="${base.source}/database" perm="755" type="both" />
    <antcall target="prepare.database"/>
    <antcall target="create.database.structure"/>
    <antcall target="import.database.data" />
    <!--<antcall target="import.database.sampledata" />-->
  </target>

2. Recreate the database, compile openbravo and deploy it.

ant create.database
ant core.lib wad.lib trl.lib compile.complete war
(here system steps to deploy war)

3. Login as Openbravo/openbravo.

4. There are no menu items.

* Environment:

Version: trunk r1667
Database: Oracle 10g XE
OS: Gentoo Linux
Ant 1.7.0
Tomcat 6
Sun JDK 1.5.0_13
No tags attached.
depends on backport 0003535 closed gorkaion No menu without sampledata in database creation 
Issue History
2008-11-26 13:59psarobeRegression testing => No
2008-11-26 13:59psarobeStatusresolved => closed

Notes
(0005931)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1844298 [^]
(0002768)
gorkaion   
2007-12-05 19:14   
(edited on: 2008-06-12 09:23)
Logged In: YES
user_id=1500690
Originator: NO

 Created the AD_UPDATE_ACCESS procedure, this procedure regenerates all the accesses for not manual roles. It takes into account the access level of both the roles and the objects. The postscript targets for ant now include a call to this procedure after the AD_UPDATE_SEQUENCE
(0002769)
jpabloae   
2007-12-10 11:09   
(edited on: 2008-06-12 09:23)
Logged In: YES
user_id=1603191
Originator: YES

Reopened. It's still there in r1712.
(0002770)
gorkaion   
2007-12-10 11:13   
(edited on: 2008-06-12 09:23)
Logged In: YES
user_id=1500690
Originator: NO

Fixed the window access. Now the role only has access when it has access level to the first tab.