Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011228Openbravo ERPA. Platformpublic2009-11-03 12:382010-01-23 00:00
networkb 
alostale 
urgentminoralways
closedfixed 
5
2.50MP6 
2.50MP11 
Core
No
0011228: The ad_menu is not correctly managed with modularity
The ad_menu is not correctly managed with modularity.
If you create a new menu entry using the OpenbravoAdmin role
then, when exporting to xml the module, it is exported with ad_client=1000000
wich is a problem if you try to install the module
in another applciation where the client_ID=1000000 does not exist
-Login as system administrator
-Define a new module
-Logout
-Login to the application as OpenbravoAdmin
-Create a menu entry for the module created before
-Export the module.
-See that the menu entry has been exported with ad_client_id=1000000
wich can cause problems when installing the module in an aplication
where the ad_client_id=1000000 does not exist
-Export only entries with ad_client_id=0

-Don't allow OpenbravoAdmin roles to create elements of the
 Application dictionary as menu entries.


No tags attached.
depends on feature request 0011247 closed iciordia Add capability to modules to execute postScripts 
Issue History
2009-11-03 12:38networkbNew Issue
2009-11-03 12:38networkbAssigned To => rafaroda
2009-11-04 09:02rafarodaNote Added: 0021546
2009-11-04 09:02rafarodaAssigned Torafaroda => alostale
2009-11-04 09:02rafarodaIssue Monitored: rafaroda
2009-11-04 15:49alostaleNote Added: 0021560
2009-11-04 15:49alostaleRelationship addeddepends on 0011247
2009-11-04 15:51alostaleNote Added: 0021561
2009-11-04 15:51alostalePriorityimmediate => urgent
2009-11-11 16:21hgbotCheckin
2009-11-11 16:21hgbotNote Added: 0021728
2009-11-11 16:21hgbotStatusnew => resolved
2009-11-11 16:21hgbotResolutionopen => fixed
2009-11-11 16:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/1a8c8b1006b108529be68be4fbb7f41df72cf846 [^]
2009-11-11 16:27alostaleStatusresolved => new
2009-11-11 16:27alostaleResolutionfixed => open
2009-11-11 16:27alostaleNote Added: 0021729
2009-11-12 11:20alostaleNote Deleted: 0021728
2009-11-12 11:20alostaleFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/1a8c8b1006b108529be68be4fbb7f41df72cf846 [^] =>
2009-11-12 11:21alostaleNote Deleted: 0021729
2009-11-16 11:26rafarodaStatusnew => acknowledged
2010-01-12 10:46alostaleNote Added: 0023338
2010-01-12 10:47hgbotCheckin
2010-01-12 10:47hgbotNote Added: 0023340
2010-01-12 10:47hgbotStatusacknowledged => resolved
2010-01-12 10:47hgbotResolutionopen => fixed
2010-01-12 10:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5e7d82341f808af6f508d6f60f2eda8e2290bed3 [^]
2010-01-19 01:41hudsonbotCheckin
2010-01-19 01:41hudsonbotNote Added: 0023542
2010-01-22 10:59marvintmNote Added: 0023735
2010-01-22 10:59marvintmStatusresolved => closed
2010-01-23 00:00anonymoussf_bug_id0 => 2937516

Notes
(0021546)
rafaroda   
2009-11-04 09:02   
Asier,

Can you please comment on this issue?

Thanks.
(0021560)
alostale   
2009-11-04 15:49   
Even though it is possible to define menu within a client, currently Openbravo ERP doesn't support this feature, which means the menu will be the same for all clients.

The fix would be to set AD_Menu table to System accesslevel (currently it is System/Client), but this could create inconsistencies in the data for instances with menu entries in a client different to 0. Therefore it would be necessary to execute a script to move menu data from other clients to 0 when upgrading to this new version. As currently this is not possible this is not going to be fixed till feature request 0011247 is not implemented.

Anyway, there is an easy workarround which consists in moving existent menu entries from other clients to 0 and not entering data in other clients.
(0021561)
alostale   
2009-11-04 15:51   
Lowed priority because it is not going to be fixed till 0011247 is implemented.
(0023338)
alostale   
2010-01-12 10:46   
It's fixed without waiting for 0011247.

In case there're data in the menu table for clients different than 0, they should be moved to 0 or deleted.

To move them execute this script:

update ad_menu set ad_client_id ='0' where ad_client_id !='0';
(0023340)
hgbot   
2010-01-12 10:47   
Repository: erp/devel/pi
Changeset: 5e7d82341f808af6f508d6f60f2eda8e2290bed3
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jan 12 10:46:48 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5e7d82341f808af6f508d6f60f2eda8e2290bed3 [^]

fixed bug 11228: The ad_menu is not correctly managed with modularity

---
M src-db/database/sourcedata/AD_TABLE.xml
---
(0023542)
hudsonbot   
2010-01-19 01:41   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/5e7d82341f80 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/7f3a35240cf9 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/obx/core/OpenbravoERP-2.50CI.15846.obx [^]
(0023735)
marvintm   
2010-01-22 10:59   
The window can no longer be accessed with the Openbravo admin role.