[V12] Problems with navigation in Desk V12 | Custom app

Hello community,

We have a problem with the new naviagtion and a custom app we’ve build.

  • Module = installedbase
  • DocType = Merk

We’ve created the desktop.py file in the config folder of the app:

    # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _

def get_data():
	return [
		{
			"module_name": "Installedbase",
			"category": "Modules",
			"label": _("Installedbase"),
			"color": "#3498db",
			"icon": "octicon octicon-repo",
			"type": "module",
			"description": "Test",
		},
	]

and we’ve created the installedbase.py in the same folder (config folder of the app):

from __future__ import unicode_literals
from frappe import _

def get_data():
    return [
      {
        "label":_("Installedbase"),
        "items": [
            {
              "type": "doctype",
              "name": "merk",
              "label": _("Merk"),
              "description": _("Merkenoverzicht.")
            },
          ]
      },
  ]

After that we’ve done the

bench migrate

and

bench clear-cache

but without the desired result. The option is available in the show/hide selection in Desk but nothing is showing. I’ve been practicing and trying for two days in a row without the desired result. Can anyone please help me?

I’ve solved the issue myself. In fact it was not a real error. The problem was that i was always logged in as the Administrator. I’ve logged in as user and the navigation was fine.

Hello

facing the same issue. I followed the steps as yours for creating files in config folder. Still not able to see custom module on desk. Can you help me?