Custom menu configurations and db update files #758
Replies: 5 comments 2 replies
-
|
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.
-
|
The trouble is there is no good way for me to manage my own updates while still wanting to pull from upstream. I have a couple ideas but nothing good yet. I think it would be a huge benefit to companies considering adopting webERP if we had a process that could be followed to create customizations. We have already discussed elsewhere iirc that a plugin abstraction likely not technically possible nor is it desired. The API is available as an abstration if the effort to develop a new application is justified. |
Beta Was this translation helpful? Give feedback.
-
@dalers : I have been in that position for almost 15 years now. There is no good or easy way (at least, that I know). As soon as you start modifying your code or your DB, you need to juggle between “standard webERP” and “my own webERP”. Depending on the number of script customizations or DB modifications, it will be more or less complicated, but the best workflow for me is to keep standard webERP and my own webERP as updated as possible. Merging every time there are new commits in standard webERP (almost daily for the last couple of years), and checking in detail every change that might affect my modified scripts or DB. Using Beyond Compare as a Diff tool connected to SourceTree makes this straightforward.
IMO, it works OK as it is. It would be a developers' nightmare to try to satisfy everyone. I think the way it is done now, it covers most cases. R |
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