/desk page like pos

35 views
Skip to first unread message

Luis Fernandes

unread,
Sep 12, 2014, 9:29:52 AM9/12/14
to erpnext-dev...@googlegroups.com
I. I made everything like POS i have identical in structure .json file. I made this page for the demo app website_chat, just for testing. My website_chat.json is:

{
 "content": null, 
 "creation": "2014-09-12 13:34:05.926191", 
 "docstatus": 0, 
 "doctype": "Page", 
 "icon": "icon-th", 
 "modified": "2014-09-12 14:12:24.829153", 
 "modified_by": "Administrator", 
 "module": "Website Chat", 
 "name": "website-chat", 
 "owner": "Administrator", 
 "page_name": "WebSite-Chat", 
 "roles": [
  {
   "role": "Website Chat Agent"
  }, 
  {
   "role": "All"
  }, 
  {
   "role": "Sales User"
  }
 ], 
 "script": null, 
 "standard": "Yes", 
 "style": null, 
 "title": "Chat"
}

identical to the POS page. And yet i can't see the icon in /desk. I put the same code of pos.'s (but i adapted) in my file website_chat.js.

What is missing?

Thanks.

Luis Fernandes

unread,
Sep 12, 2014, 9:50:44 AM9/12/14
to erpnext-dev...@googlegroups.com
I figured it out. Everything is ok. I notes that i have to change the desktop.json file too,  and add this:

"Chat": {
"color": "#589494",
"icon": "icon-th",
"type": "page",
"link": "website-chat"
}
Thanks anyway.

Rushabh Mehta

unread,
Sep 12, 2014, 12:28:42 PM9/12/14
to erpnext-dev...@googlegroups.com
You have to sync the database

bench frappe sitename --latest 

@rushabh_mehta
via mobile
--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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/bf84c885-4e3c-4707-abc6-8f88d049d39d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luis Fernandes

unread,
Sep 13, 2014, 2:56:17 PM9/13/14
to erpnext-dev...@googlegroups.com
I. thanks for answer, but that was not necessary. 

Was enough to put the following in desktop.json.

"Chat": {
"color": "#589494",
"icon": "icon-th",
"type": "page",
"link": "website-chat"
}


To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages