Added Applications page and fixed issues in translations and hooks
diff --git a/erpnext/desktop.json b/erpnext/desktop.json
new file mode 100644
index 0000000..67c4f99
--- /dev/null
+++ b/erpnext/desktop.json
@@ -0,0 +1,72 @@
+{
+ "Accounts": {
+ "color": "#3498db",
+ "icon": "icon-money",
+ "link": "accounts-home",
+ "type": "module"
+ },
+ "Activity": {
+ "color": "#e67e22",
+ "icon": "icon-play",
+ "label": "Activity",
+ "link": "activity",
+ "type": "page"
+ },
+ "Buying": {
+ "color": "#c0392b",
+ "icon": "icon-shopping-cart",
+ "link": "buying-home",
+ "type": "module"
+ },
+ "HR": {
+ "color": "#2ecc71",
+ "icon": "icon-group",
+ "label": "Human Resources",
+ "link": "hr-home",
+ "type": "module"
+ },
+ "Manufacturing": {
+ "color": "#7f8c8d",
+ "icon": "icon-cogs",
+ "link": "manufacturing-home",
+ "type": "module"
+ },
+ "Notes": {
+ "color": "#95a5a6",
+ "doctype": "Note",
+ "icon": "icon-file-alt",
+ "label": "Notes",
+ "link": "List/Note",
+ "type": "list"
+ },
+ "Projects": {
+ "color": "#8e44ad",
+ "icon": "icon-puzzle-piece",
+ "link": "projects-home",
+ "type": "module"
+ },
+ "Selling": {
+ "color": "#1abc9c",
+ "icon": "icon-tag",
+ "link": "selling-home",
+ "type": "module"
+ },
+ "Setup": {
+ "color": "#bdc3c7",
+ "icon": "icon-wrench",
+ "link": "Setup",
+ "type": "setup"
+ },
+ "Stock": {
+ "color": "#f39c12",
+ "icon": "icon-truck",
+ "link": "stock-home",
+ "type": "module"
+ },
+ "Support": {
+ "color": "#2c3e50",
+ "icon": "icon-phone",
+ "link": "support-home",
+ "type": "module"
+ }
+}
\ No newline at end of file
diff --git a/erpnext/hooks.txt b/erpnext/hooks.txt
index 036e80f..40bac96 100644
--- a/erpnext/hooks.txt
+++ b/erpnext/hooks.txt
@@ -1,10 +1,16 @@
app_name ERPNext
+app_publisher Web Notes Technologies
+app_description Open Source Enterprise Resource Planning for Small and Midsized Organizations
+app_icon icon-th
+app_color #e74c3c
+app_version 4.0.0-wip
app_include_js assets/js/erpnext.min.js
app_include_css assets/css/erpnext.css
web_include_js assets/js/erpnext-web.min.js
-get_desktop_icons erpnext.manage.get_desktop_icons
+after_install erpnext.setup.install.after_install
+
boot_session erpnext.startup.boot.boot_session
notification_config erpnext.startup.notifications.get_notification_config
diff --git a/erpnext/manage.py b/erpnext/setup/install.py
similarity index 82%
rename from erpnext/manage.py
rename to erpnext/setup/install.py
index fe18d20..0f18ae5 100644
--- a/erpnext/manage.py
+++ b/erpnext/setup/install.py
@@ -128,78 +128,4 @@
'fs_page_break', 'fs_more_info', 'fs_pos_view'
]
bean.doc.fields.update(dict(zip(flds, [1]*len(flds))))
- bean.save()
-
-def get_desktop_icons():
- return {
- "Accounts": {
- "color": "#3498db",
- "icon": "icon-money",
- "link": "accounts-home",
- "type": "module"
- },
- "Activity": {
- "color": "#e67e22",
- "icon": "icon-play",
- "label": "Activity",
- "link": "activity",
- "type": "page"
- },
- "Buying": {
- "color": "#c0392b",
- "icon": "icon-shopping-cart",
- "link": "buying-home",
- "type": "module"
- },
- "HR": {
- "color": "#2ecc71",
- "icon": "icon-group",
- "label": "Human Resources",
- "link": "hr-home",
- "type": "module"
- },
- "Manufacturing": {
- "color": "#7f8c8d",
- "icon": "icon-cogs",
- "link": "manufacturing-home",
- "type": "module"
- },
- "Notes": {
- "color": "#95a5a6",
- "doctype": "Note",
- "icon": "icon-file-alt",
- "label": "Notes",
- "link": "List/Note",
- "type": "list"
- },
- "Projects": {
- "color": "#8e44ad",
- "icon": "icon-puzzle-piece",
- "link": "projects-home",
- "type": "module"
- },
- "Selling": {
- "color": "#1abc9c",
- "icon": "icon-tag",
- "link": "selling-home",
- "type": "module"
- },
- "Setup": {
- "color": "#bdc3c7",
- "icon": "icon-wrench",
- "link": "Setup",
- "type": "setup"
- },
- "Stock": {
- "color": "#f39c12",
- "icon": "icon-truck",
- "link": "stock-home",
- "type": "module"
- },
- "Support": {
- "color": "#2c3e50",
- "icon": "icon-phone",
- "link": "support-home",
- "type": "module"
- }
- }
+ bean.save()
\ No newline at end of file