Fixed booboo: Moved website moduleview to framework

This commit is contained in:
Anand Doshi
2014-03-04 11:15:08 +05:30
parent e30511d315
commit 0c4ef64b32
2 changed files with 4 additions and 110 deletions

View File

@@ -1,5 +1,5 @@
from frappe import _
from frappe.widgets.moduleview import get_config
from frappe.widgets.moduleview import add_setup_section
data = [
{
@@ -110,21 +110,8 @@ def get_data():
("selling", _("Selling"), "icon-tag"),
("buying", _("Buying"), "icon-shopping-cart"),
("hr", _("Human Resources"), "icon-group"),
("support", _("Support"), "icon-phone"),
("website", _("Website"), "icon-globe")):
("support", _("Support"), "icon-phone")):
try:
config = get_config("erpnext", module)
except ImportError:
continue
for section in config:
if section.get("label")==_("Setup"):
out.append({
"label": label,
"icon": icon,
"items": section["items"]
})
break
add_setup_section(out, "erpnext", module, label, icon)
return out