Fixed moduleview language issue

This commit is contained in:
Anand Doshi 2014-05-08 11:43:18 +05:30
parent 7e1b75a705
commit 08ef467fc6
9 changed files with 1532 additions and 1526 deletions

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = [ def get_data():
return [
{ {
"label": _("Documents"), "label": _("Documents"),
"icon": "icon-star", "icon": "icon-star",

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = [ def get_data():
return [
{ {
"label": _("Documents"), "label": _("Documents"),
"icon": "icon-star", "icon": "icon-star",

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = [ def get_data():
return [
{ {
"label": _("Documents"), "label": _("Documents"),
"icon": "icon-star", "icon": "icon-star",

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = [ def get_data():
return [
{ {
"label": _("Documents"), "label": _("Documents"),
"icon": "icon-star", "icon": "icon-star",

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = [ def get_data():
return [
{ {
"label": _("Documents"), "label": _("Documents"),
"icon": "icon-star", "icon": "icon-star",

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = [ def get_data():
return [
{ {
"label": _("Documents"), "label": _("Documents"),
"icon": "icon-star", "icon": "icon-star",

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
from frappe.widgets.moduleview import add_setup_section from frappe.widgets.moduleview import add_setup_section
def get_data():
data = [ data = [
{ {
"label": _("Settings"), "label": _("Settings"),
@ -122,9 +123,6 @@ data = [
}, },
] ]
def get_data():
out = list(data)
for module, label, icon in ( for module, label, icon in (
("accounts", _("Accounts"), "icon-money"), ("accounts", _("Accounts"), "icon-money"),
("stock", _("Stock"), "icon-truck"), ("stock", _("Stock"), "icon-truck"),
@ -133,6 +131,6 @@ def get_data():
("hr", _("Human Resources"), "icon-group"), ("hr", _("Human Resources"), "icon-group"),
("support", _("Support"), "icon-phone")): ("support", _("Support"), "icon-phone")):
add_setup_section(out, "erpnext", module, label, icon) add_setup_section(data, "erpnext", module, label, icon)
return out return data

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = [ def get_data():
return [
{ {
"label": _("Documents"), "label": _("Documents"),
"icon": "icon-star", "icon": "icon-star",

View File

@ -1,6 +1,7 @@
from frappe import _ from frappe import _
data = [ def get_data():
return [
{ {
"label": _("Documents"), "label": _("Documents"),
"icon": "icon-star", "icon": "icon-star",