Custom menu configurations and db update files #758
Replies: 3 comments 1 reply
-
|
Hi Dale, Sorry, I meant that the DB update system should be used for changes intended to be committed back to the project. Thanks |
Beta Was this translation helpful? Give feedback.
-
|
Unless someone has a better procedure, it seems to me the only practical way to make custom menu changes is to use a custom update script with existing menu management functions (e.g. create an update file n+1.php). However, that will result in a conflict when the webERP project issues a new update file. I think the following workflow will support custom update scripts. Does anyone see any issues or has a better solution? (edit: updated drawing for clarity) |
Beta Was this translation helpful? Give feedback.
-
|
I submitted PR #795 for some menu cleanup, and it struck me that I was using an update not to modify the schema but only to change the configuration of some menu items, which is something many companies may likely do or want to do. How should a company manage their "custom" menu configuration when the project makes changes? In this case (issue #795), if a company has modified their [Utilities > Maintenance ] sub-menu, it seems they will have to re-implement their changes after updating to update 32 (update 32 assuming the PR is accepted). Anyone have any comments or recommendations? Should the update system be used only for schema changes, and "recommended" or "default" configuration managed seperately in some other way? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Given the file name syntax of a DB update files and that the db update number and db update filename is managed by the webERP project, what should the workflow be for creating, managing and updating custom menu systems? I.e. adding new modules, changing existing menu items, and follow any menu updates from the webERP project (so long as they don't conflict with customizations).
Related discussion #754 (comment)
It seems (without knowing) that the custom db update file must be numbered one higher than the existing db update files to be executed, yet at any time the webERP project could issue a dbupdate file with the same number as mine. Or should I number my db update files in some other way?
Does anyone have a system that works for them? There could be a recommended procedure in the Wiki.
Beta Was this translation helpful? Give feedback.
All reactions