Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050369Openbravo ERP00. Application dictionarypublic2022-09-28 17:002022-09-29 11:48
shuehner 
shuehner 
normalminorhave not tried
closedfixed 
5
 
PR22Q4 
Core
No
0050369: Empty folders without any content should be removed from application menu
The main application menu of Openbravo contains several folders which do not have any entries.

As those are not useful but have some overhead (data, translations) they should be removed.

Application Dictionary,Automated Test | 800108
Application Dictionary,System Admin | 218
Deprecated | 800257
Financial Management,Business Intelligence | 1004400006
Financial Management,Performance Measurement | 158
General Setup,Data | 157
General Setup,Data,Utility | 159
General Setup,Printing Options | 326
Partner Relations | 263
Partner Relations,Business Partner Rules | 165
Partner Relations,Web | 372
Product Management,Product Attributes | 357
Product Management,Setup | 167
Service | 271
Service,Knowledge | 392
Service,Reports | 800080

To double check that those are not used in modules the following can be used.
It search for ad_treenode entries (which define the menu structure) for any entries having the removed id's as a parent_id

find . -name AD_TREENODE.xml | grep PARENT_ID | cut -d'[' -f3 | cut -d']' -f1 | grep -E '157|158|159|165|167|183|218|263|271|326|357|372|392|800080|800108|800257|1004400006'
Search application menu for any entries (folders) not having any
- subfolders
- items

inside them.
No tags attached.
Issue History
2022-09-28 17:00shuehnerNew Issue
2022-09-28 17:00shuehnerAssigned To => Triage Platform Base
2022-09-28 17:00shuehnerModules => Core
2022-09-28 17:00shuehnerTriggers an Emergency Pack => No
2022-09-28 17:06hgbotNote Added: 0141451
2022-09-28 17:06hgbotNote Added: 0141452
2022-09-29 11:47alostaleAssigned ToTriage Platform Base => shuehner
2022-09-29 11:48hgbotNote Added: 0141482
2022-09-29 11:48hgbotNote Added: 0141483
2022-09-29 11:48hgbotResolutionopen => fixed
2022-09-29 11:48hgbotStatusnew => closed
2022-09-29 11:48hgbotFixed in Version => PR22Q4
2022-09-29 11:48hgbotNote Added: 0141484
2022-09-29 11:48hgbotNote Added: 0141485

Notes
(0141451)
hgbot   
2022-09-28 17:06   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/719 [^]
(0141452)
hgbot   
2022-09-28 17:06   
Merge Request created: https://gitlab.com/openbravo/ci/backoffice-api/-/merge_requests/34 [^]
(0141482)
hgbot   
2022-09-29 11:48   
Repository: https://gitlab.com/openbravo/ci/backoffice-api [^]
Changeset: 1675cf98425b376c574bf9295f729eb848b61c37
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 28-09-2022 17:04:54
URL: https://gitlab.com/openbravo/ci/backoffice-api/-/commit/1675cf98425b376c574bf9295f729eb848b61c37 [^]

Related to ISSUE-50369. Accept API-change to cleanup empty menu folders.

---
M model/src-db/database/sourcedata/AD_MENU.xml
M model/src-db/database/sourcedata/AD_TREENODE.xml
---
(0141483)
hgbot   
2022-09-29 11:48   
Merge request merged: https://gitlab.com/openbravo/ci/backoffice-api/-/merge_requests/34 [^]
(0141484)
hgbot   
2022-09-29 11:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 52801ed3e80e5fe428ddbb4a420c893827e63ba8
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 28-09-2022 17:02:05
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/52801ed3e80e5fe428ddbb4a420c893827e63ba8 [^]

Fixes ISSUE-50369. Remove empty folders from application menu

Several old folder in application menu exist which do not have any
content. Remove them as obsolete.

---
M src-db/database/sourcedata/AD_MENU.xml
M src-db/database/sourcedata/AD_TREENODE.xml
---
(0141485)
hgbot   
2022-09-29 11:48   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/719 [^]