ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Custom Module disappeared from Desktop after upgrade

custom-app

#1

We have added our custom app with some custom doctypes for our needs. Initially, our custom module was accessible through the desktop with Documents/Setup/Reports sections.

After the latest update, the module def is not visible on the desktop. The doctypes can be accessed from the search bar and they are working fine. We tried searching for solutions in the forum and tried applying all the relevant ones but nothing worked. our desktop.py is in place, bench list-apps includes our custom app, tried multiple bench commands like build, migrate and all but nothing worked.

Can someone please help in analysing and fixing this issue?


#2

Managed to resolve it…

Below is our desktop.py

def get_data():
	return [
		{
			"module_name": "Cyahi Customizations",
			"category": "Modules",
			"color": "#3498db",
			"icon": "fa fa-check-square-o",
			"type": "module",
			"label": _("Cyahi Customizations"),
			"description": "Customizations by Cyahi Design Private Limited."
		}
	]

Manually created a file - <module_name>.py in the config folder as below:

def get_data():
	return [
		{
			"label": _("Delhivery"),
			"items": [
				{
					"type": "doctype",
					"name": "Delhivery Invoice",
				},
				{
					"type": "doctype",
					"name": "Delhivery COD Reconciliation",
					"dependencies": ["Settlements Settings"]
				},
			]
		},

.
.
.
.

Then executed bench migrate and that gave us the desired results:


#3

Hello;
Can you please explain what this module is doing and how you did this?
Do you mean that you completely changed the ERPNext shape?

Regards
Bilal


#4

We have added functionalities that we required over and above the standard ERPNext functionalities.

It is always better to do that in a separate custom module so that they don’t get overwritten whenever the standard package is upgraded.

We can customize standard functionalities and/or build new of our own and put them in a custom application.


#5

Version 12 is still under develop mode and the updates may break the customisation because of the rigorous changes in codes. perhaps it would be advisable to use version 11 for production use… you know it better…

thanks


#6

@M27
Do you mean that it will not be possible to have separate customization in version 12?

@wispmac
But the modules that you added, is completely differ than erpnext doctype shape.
Can we know how you were able to build this new application look which differs than standard erpnext doctype?
It look like you did not use erpnext doctype?
Regards
Bilal


#7

@bghayad

its possible brother. there is no doubt about that. but i was suggesting to use the stable version for any production use. version 12 is still not suitable for production use as the developers are constantly improving the codes. so there might be issues with custom modules and doctypes…


#8

@M27
What main differences in version 12 that really is interesting?
Regards
Bilal


#9

@bghayad

One of the main visual difference is here…

and there will be a lot more changes too…


#10

I see, the desktop has been changed !
I prefer the iconic desktop (same as in version 10 and 11).
Iconic desktop is not existed in version 12?
What about the indicators that we were getting them at the icon which indicates that we have a number of pending tasks to be finished, they went or still existed?

Regards
Bilal


#11

as far as I know the icon badges will be there… the design progress page shows all changes…
see here


#12

@M27 Thanks for the advice. Much appreciated. But our prod servers are on stable versions.


#13

Is there a way to automatically generate the “modulename.py” in the config folder? Not really handy manually code the stucture