i follow this steps but no module creation :
1- Turn on Developer Mode.
2- Go to Module Def, Create Module.
3- Go to apps/your-app/your-app/config/desktop.py
add this code:
{
“module_name”: “Your Module Name”,
“color”: “#8e44ad”,
“icon”: “fa fa-puzzle-piece”,
“icon”: “octicon octicon-rocket”,
“type”: “module”
},
Hi. make sure your newly created doctype is located also on config folder. no need to do the 4 and 5 just reboot your server and it will work hope it helps
Okay then create a module name you can copy and rename existing .py files to your newly created module. Dont forget to make restart after you created the module name.py filles on config folder.
No i mean restart your server make sure u place your doctype name inside the newly created module.py files on config folder at some point you need it for the module to appear.
Doctype and Module are different make sure you create first module def lists. Then after creating a module on erpnext go to your erpnext config folder and create a module_name.py module name refers to your newly created module. Then please insert the code there.
Please delete the other operations management module to avoid duplication. After that go to frappe-bench / apps / erpnext /erpnext / config. Then create a operations_management.py then copy the code that i gave.
May i see the screenshot of your doings? From the cretion of doctype and modules. From creation of operations management.py and the code also the desktop.py
I just created a new app with a new module … you have to create a .py file inside of your config folder that defines the module. The desktop.py defines the module itself,
For instance module name is “module1”… in desktop.py define “module1”, but inside config directory you need to have module1.py.
Make sure you use bench migrate, app needs to be installed on your initial site … when you’re done … do a restart of supervisor … that should get it running …
It looks like you’re trying to modify core code … you may have an issue if you throw a module into the core code… make a new app …