ERPNext Conference 2019* ERPNext.com Blog

How to change sequence of applying multiple custom apps

custom-app

#1

We are working with multiple custom apps and wanted to reorder the sequence of migrating the modules. During installation the sequence followed was myapp3, myapp1, myapp2.

Found out the following

SELECT defvalue, defkey from tabDefaultValue where defkey = ‘installed_apps’;

If you update defvalue with correct sequence e.g.
from ‘[“frappe”, “erpnext”, “myapp3”, “myapp1”, “myapp2”]’

to ‘[“frappe”, “erpnext”, “myapp1”, “myapp2”, “myapp3”]’


#2

You will see the solution above.

The tabDefaultValue stores many defaults and one of them is installed_app.

Mitesh Choksi, [03.07.19 19:20]
Is anybody working with multiple custom apps and want to reorder the sequence of migrating the modules?

installed = json.loads(db.get_global(“installed_apps”) or “[]”)

master branch
frappe/frappe/init.py
Line 870 points to this