App from scratch does not show up on Desk

87 views
Skip to first unread message

Brendan Kiu

unread,
Jun 19, 2014, 5:19:42 AM6/19/14
to erpnext-dev...@googlegroups.com
Hello! I am new to the frappe.io framework, and am trying to see if I can develop some basic apps. I have followed the tutorial here (https://frappe.io/apps/frappe-framework/developers/guide) in order to create an app and install it. I am currently running it in VirtualBox, in the VM that was provided for download.

However, even after adding the app to apps.txt, as well as running `frappe erpnext.erpnext-vm --install_app my_app` and `pip install -e apps/my_app` it doesn't show up in the Desk. All the details are present in hooks.py, but it doesn't show up on the desktop. Is there something I'm missing? I also added some DocTypes to the app, but that didn't help. The app does show up under "Installer" and has the green "Installed" button next to it, but that's the only place it shows up.

Thanks in advance.

Brendan Kiu

unread,
Jun 19, 2014, 5:30:07 AM6/19/14
to erpnext-dev...@googlegroups.com
Just tried it open it via the Search Bar, and it said "Module not found," and the title was "My App<". Not sure if that helps.

Rushabh Mehta

unread,
Jun 19, 2014, 5:58:13 AM6/19/14
to erpnext-dev...@googlegroups.com
1. Did you update the VM?
2. Can you paste your config/desktop.py from your app


-- 
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
--- 
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/fbd5133d-0b67-4d5a-9f30-8fb56eb5d0c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brendan Kiu

unread,
Jun 19, 2014, 6:10:02 AM6/19/14
to erpnext-dev...@googlegroups.com
1) Yes, I did. I ran scripts/update.sh
2) 
 from frappe import _                          
                                               
 def get_data():                               
     return {                                  
         "My App": {                
             "color": "#34495E",               
             "icon": "icon-globe",             
             "type": "module",                 
             "label": _("My App")   
         }                                     
     }                                         


On Thursday, June 19, 2014 3:28:13 PM UTC+5:30, rushabh wrote:
1. Did you update the VM?
2. Can you paste your config/desktop.py from your app

On 19-Jun-2014, at 3:00 pm, Brendan Kiu <bren...@gmail.com> wrote:

Just tried it open it via the Search Bar, and it said "Module not found," and the title was "My App<". Not sure if that helps.

On Thursday, June 19, 2014 2:49:42 PM UTC+5:30, Brendan Kiu wrote:
Hello! I am new to the frappe.io framework, and am trying to see if I can develop some basic apps. I have followed the tutorial here (https://frappe.io/apps/frappe-framework/developers/guide) in order to create an app and install it. I am currently running it in VirtualBox, in the VM that was provided for download.

However, even after adding the app to apps.txt, as well as running `frappe erpnext.erpnext-vm --install_app my_app` and `pip install -e apps/my_app` it doesn't show up in the Desk. All the details are present in hooks.py, but it doesn't show up on the desktop. Is there something I'm missing? I also added some DocTypes to the app, but that didn't help. The app does show up under "Installer" and has the green "Installed" button next to it, but that's the only place it shows up.

Thanks in advance.

-- 
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
--- 
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Rushabh Mehta

unread,
Jun 19, 2014, 6:29:40 AM6/19/14
to erpnext-dev...@googlegroups.com
Looks okay. Did you have permission for at least one DocType in the module?

you can check by running this in your console.

frappe.model.can_read("my doctype")



To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/328cf009-5f68-40f4-b984-a59bd3da5056%40googlegroups.com.

Brendan Kiu

unread,
Jun 19, 2014, 6:37:02 AM6/19/14
to erpnext-dev...@googlegroups.com
Yes, I put that into my JS console and the result was true. Maybe there's something corrupted in the DB, because when I try to use a "Read Only" field in the way that's instructed by the tutorial, it doesn't fill in either. I might just do a fresh install on a new VM and see if I can get it to work. Thanks though.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Rushabh Mehta

unread,
Jun 19, 2014, 7:07:51 AM6/19/14
to erpnext-dev...@googlegroups.com
Also check if your module is check in "All Applications" and Setup > Show / Hide Module



@rushabh_mehta

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1d2da64e-8489-4901-ba5b-c0ee1025831d%40googlegroups.com.

Brendan Kiu

unread,
Jun 19, 2014, 7:18:44 AM6/19/14
to erpnext-dev...@googlegroups.com
I checked, and it's not there. When I go into my JS console and look at frappe.boot, it's there, but there is no app_icon field under "My App."

Rushabh Mehta

unread,
Jun 19, 2014, 7:54:59 AM6/19/14
to erpnext-dev...@googlegroups.com
There might be one more thing - your module (Module Def) must also be called "My App"
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/2d79ab80-95c0-4f59-9782-d05e14830b97%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages