feat: slides for onboarding wizard in ERPNext

This commit is contained in:
Rucha Mahabal
2019-11-21 20:47:08 +05:30
parent 29a2e16f62
commit 3cf2c2b3d5
2 changed files with 4 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ def create_customers(args_data):
args = json.loads(args_data) args = json.loads(args_data)
defaults = frappe.defaults.get_defaults() defaults = frappe.defaults.get_defaults()
for i in range(1,4): for i in range(1,4):
customer = args.get("customer_" + str(i)) customer = args.get("customer_name_" + str(i))
if customer: if customer:
try: try:
doc = frappe.get_doc({ doc = frappe.get_doc({
@@ -58,7 +58,7 @@ def create_suppliers(args_data):
args = json.loads(args_data) args = json.loads(args_data)
defaults = frappe.defaults.get_defaults() defaults = frappe.defaults.get_defaults()
for i in range(1,4): for i in range(1,4):
supplier = args.get("supplier_" + str(i)) supplier = args.get("supplier_name_" + str(i))
if supplier: if supplier:
try: try:
doc = frappe.get_doc({ doc = frappe.get_doc({
@@ -232,9 +232,3 @@ def create_users(args_data):
emp.insert(ignore_permissions = True) emp.insert(ignore_permissions = True)
# Ennumerate the setup hooks you're going to need, apart from the slides # Ennumerate the setup hooks you're going to need, apart from the slides
@frappe.whitelist()
def update_default_domain_actions_and_get_state():
domain = frappe.get_cached_value('Company', erpnext.get_default_company(), 'domain')
update_domain_actions(domain)
return get_domain_actions_state(domain)