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

Custom app not shown in the Desk menu unable to find the app after installation


#1

Hello
I have created a new app using
bench new-app firstapp
then i added the app to my site using
bench --site site1.local install-app firstapp
when i start bench
i can’t find “firstapp” between the Desk installed apps
developer_mode is 1
what could be the reason for that please
no errors are shown
thank you


#2

empty apps not appear, try to add new doctype in your app and try again


#3

Thank you for replying
i already added two doctypes
also i did migrate after that
but still can’t find the app
i can see the doctype inside the app dir


#4

Yeah If your using the develop branch I found the same - it would never show up. If you use the master branch it works as expected.


#5

I also found that it did not export the doctypes properly into the custom app as well, when using the develop branch It was very confusing .


#6

I’m using the bench-repo
followed the instruction in the github repository


#7

Yeah you will need to switch to the master branch.
you can do this by doing a

    bench switch-to-master
    bench --site yoursite migrate

#8

will this effect my current code ?
especially if have done changes to some codes


#9

you can make a copy of the /apps directory if your concerned about losing code - although you shouldn’t be editing the core code of erpnext. You could also take a backup of your database as well to ensure anything you have done there can also be pulled if needed. - this is done via

bench backup-all-sites

#10

i needed to customize some parts of the core code
do u have a better way to customize the code ?
thank you for caring


#11

Hi ahmedrn, make sure you understand customizations in erpnext terms (adding/remove fields from core doctypes) and how you can export them to your own custom app. This is done via the hook module in your custom app (fixtures). If you need to change the functionality of some of the code in one of the core doctypes, you can always use monkey patching. If you do it this way, when erpnext gets upgraded, all of your changes will not be lost.


#12

so if want to change style for example the accounts Item list i need to do the following:
1- create new app
2- include my new css style in the created app
then what ?
how to tell frappe that’s my new style for the desk


#13

It automatically picks it up via the hooks.py function in your app - you may need to do a bench build to ensure that your css is included in the minified css that it produces.

After you have created your new app you will see some commented out lines in the hooks.py file, about css/js, for either the desk, or the website. So you can have css that only applies to the desk side (that’s the site where users log in and enter data etc), or the public facing website side.

Also take your time to go through
https://frappe.io/docs/user/en/tutorial
https://frappe.io/docs/user/en/guides/basics/hooks


#14

Great
that’s so much helpful
Thank you for your time <3


#15

I am seeing the same behaviour. I was previously building on the master branch but switched to develop so that I can send feature pull requests. Can someone from Frappe/ERPNext confirm if this is expected behaviour?