I am developing an app that depends on hrms, which in turn depends on ERPNext.
Now my app is installed after ERPNext but before hrms. Therefore, my changes are not applied.
Is there a way to define the order in which the apps are installed and migrated?
I did this already and no luck. Basically, this changes the order how the apps are shown in bench list-apps, but the order in bench migrate is a completely different one. The order in migrate is always exactly the same no matter what I change. Is there anything I need to do that the changes are applied?
It’s actually pretty simple. There’s a global value in the database called installed_apps - it’s in the sequence of installation. Every time an app is installed, it gets added at the end of installed_apps.
The sort parameter to get_installed_apps needs to be deprecated - it’s not ideal for multi-tenancy (see attempt).
To move your custom app to the end of this list, you can just execute the following code in bench console: