I feel like I missed something small here. I have my custom app to be installed alongside ERPNext. The Custom app in my development environment has its own domain icon in the desktop as I have configured it.
The Fulfillment pin above ^
In my development environment, I had to made the Domain manually. However, in the production environment, the Domain was created when I ran:
bench get-app fulfillment https://example.org/fulfillment.git
bench --site [site] install-app fulfillment
The production environment does not have the icon on the Desk, but the Domain and Module Def were created automatically as needed.
apps/fulfillment/fulfillment/config/fulfillment.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Documents"),
"items": [
{
"type": "doctype",
"name": "Delivery Trip",
}
# more items to follow...
],
},
{
"label": _("Tools"),
"items": [
{
"type": "page",
"name": "delivery-trip-builde",
"label": _("Delivery Trip Builder")
}
# more items to follow...
]
}
]
apps/fulfillment/fulfillment/config/desktop.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "Fulfillment",
"category": "Domains",
"color": "green",
"icon": "octicon octicon-pin",
"type": "module",
"label": _("Fulfillment")
}
]
I ran bench migrate; bench clear-cache
and even bench update
to no avail.
It is not limited to the Fulfillment domain on the Desk home page either. The app has a stock.py
file adding more links under Stock, but they are missing too.
Any ideas? Any help would be much appreciated
Update: I also have a modules.txt
file with Fulfillment
in it.