[fix] setup wizard - industry type
This commit is contained in:
parent
ba51ebd1b7
commit
bbca95fd1b
@ -1,6 +1,7 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
items = [
|
def get_industry_types():
|
||||||
|
return [
|
||||||
_('Accounting'),
|
_('Accounting'),
|
||||||
_('Advertising'),
|
_('Advertising'),
|
||||||
_('Aerospace'),
|
_('Aerospace'),
|
||||||
@ -51,4 +52,5 @@ _('Technology'),
|
|||||||
_('Telecommunications'),
|
_('Telecommunications'),
|
||||||
_('Television'),
|
_('Television'),
|
||||||
_('Transportation'),
|
_('Transportation'),
|
||||||
_('Venture Capital')]
|
_('Venture Capital')
|
||||||
|
]
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
items = [
|
def get_operations():
|
||||||
|
return [
|
||||||
_("Centrifugal casting"),
|
_("Centrifugal casting"),
|
||||||
_("Continuous casting"),
|
_("Continuous casting"),
|
||||||
_("Die casting"),
|
_("Die casting"),
|
||||||
@ -162,4 +163,5 @@ _("Woodworking"),
|
|||||||
_("Lapping"),
|
_("Lapping"),
|
||||||
_("Morticing"),
|
_("Morticing"),
|
||||||
_("Crushing"),
|
_("Crushing"),
|
||||||
_("Packaging and labeling")]
|
_("Packaging and labeling")
|
||||||
|
]
|
||||||
|
@ -177,9 +177,9 @@ def install(country=None):
|
|||||||
{'doctype': "Print Heading", 'print_heading': _("Debit Note")}
|
{'doctype': "Print Heading", 'print_heading': _("Debit Note")}
|
||||||
]
|
]
|
||||||
|
|
||||||
from erpnext.setup.page.setup_wizard.fixtures import industry_type
|
from erpnext.setup.page.setup_wizard.fixtures.industry_type import get_industry_types
|
||||||
records += [{"doctype":"Industry Type", "industry": d} for d in industry_type.items]
|
records += [{"doctype":"Industry Type", "industry": d} for d in get_industry_types()]
|
||||||
# records += [{"doctype":"Operation", "operation": d} for d in operations.items]
|
# records += [{"doctype":"Operation", "operation": d} for d in get_operations()]
|
||||||
|
|
||||||
from frappe.modules import scrub
|
from frappe.modules import scrub
|
||||||
for r in records:
|
for r in records:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user