Merge branch 'develop' of https://github.com/frappe/erpnext into multi-currency
This commit is contained in:
commit
3607737b5e
@ -40,8 +40,8 @@ def rename_and_reload_doctypes():
|
||||
|
||||
frappe.reload_doctype("Item")
|
||||
frappe.reload_doc("Stock", "DocType", "Item Variant Attribute")
|
||||
frappe.reload_doctype("Item Attribute Value")
|
||||
frappe.reload_doctype("Item Attribute")
|
||||
frappe.reload_doc("Stock", "DocType", "Item Attribute Value")
|
||||
frappe.reload_doc("Stock", "DocType", "Item Attribute")
|
||||
|
||||
def migrate_manage_variants():
|
||||
item_attribute = {}
|
||||
|
@ -1,6 +1,7 @@
|
||||
from frappe import _
|
||||
|
||||
items = [
|
||||
def get_industry_types():
|
||||
return [
|
||||
_('Accounting'),
|
||||
_('Advertising'),
|
||||
_('Aerospace'),
|
||||
@ -51,4 +52,5 @@ _('Technology'),
|
||||
_('Telecommunications'),
|
||||
_('Television'),
|
||||
_('Transportation'),
|
||||
_('Venture Capital')]
|
||||
_('Venture Capital')
|
||||
]
|
||||
|
@ -3,7 +3,8 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
items = [
|
||||
def get_operations():
|
||||
return [
|
||||
_("Centrifugal casting"),
|
||||
_("Continuous casting"),
|
||||
_("Die casting"),
|
||||
@ -162,4 +163,5 @@ _("Woodworking"),
|
||||
_("Lapping"),
|
||||
_("Morticing"),
|
||||
_("Crushing"),
|
||||
_("Packaging and labeling")]
|
||||
_("Packaging and labeling")
|
||||
]
|
||||
|
@ -177,9 +177,9 @@ def install(country=None):
|
||||
{'doctype': "Print Heading", 'print_heading': _("Debit Note")}
|
||||
]
|
||||
|
||||
from erpnext.setup.page.setup_wizard.fixtures import industry_type
|
||||
records += [{"doctype":"Industry Type", "industry": d} for d in industry_type.items]
|
||||
# records += [{"doctype":"Operation", "operation": d} for d in operations.items]
|
||||
from erpnext.setup.page.setup_wizard.fixtures.industry_type import get_industry_types
|
||||
records += [{"doctype":"Industry Type", "industry": d} for d in get_industry_types()]
|
||||
# records += [{"doctype":"Operation", "operation": d} for d in get_operations()]
|
||||
|
||||
from frappe.modules import scrub
|
||||
for r in records:
|
||||
|
Loading…
Reference in New Issue
Block a user