Esempio n. 1
0
def make(domain='Manufacturing'):
    frappe.flags.domain = domain
    frappe.flags.mute_emails = True
    setup_data.setup(domain)
    if domain == 'Manufacturing':
        manufacture.setup_data()
    elif domain == 'Education':
        education.setup_data()

    site = frappe.local.site
    frappe.destroy()
    frappe.init(site)
    frappe.connect()
    simulate(domain)
Esempio n. 2
0
def make(domain='Manufacturing'):
	frappe.flags.domain = domain
	frappe.flags.mute_emails = True
	setup_data.setup(domain)
	if domain== 'Manufacturing':
		manufacture.setup_data()
	elif domain== 'Education':
		education.setup_data()
	
	site = frappe.local.site
	frappe.destroy()
	frappe.init(site)
	frappe.connect()
	simulate(domain)
Esempio n. 3
0
def make(domain='Manufacturing', days=100, lang='en'):
    frappe.flags.domain = domain
    frappe.flags.mute_emails = True
    frappe.flags.demo_lang = lang

    setup_data.setup(domain)

    if domain == 'Manufacturing':
        manufacture.setup_data()
    elif domain == "Retail":
        retail.setup_data()

    site = frappe.local.site
    frappe.destroy()
    frappe.init(site)
    frappe.connect()

    simulate(domain, days)
Esempio n. 4
0
def make(domain='Manufacturing', days=100):
    frappe.flags.domain = domain
    frappe.flags.mute_emails = True
    setup_data.setup(domain)
    if domain == 'Manufacturing':
        manufacture.setup_data()
    elif domain == "Retail":
        retail.setup_data()
    elif domain == 'Education':
        education.setup_data()
    elif domain == 'Healthcare':
        healthcare.setup_data()

    site = frappe.local.site
    frappe.destroy()
    frappe.init(site)
    frappe.connect()

    simulate(domain, days)
Esempio n. 5
0
def make(domain='Manufacturing', days=100):
	frappe.flags.domain = domain
	frappe.flags.mute_emails = True
	setup_data.setup(domain)
	if domain== 'Manufacturing':
		manufacture.setup_data()
	elif domain == "Retail":
		retail.setup_data()
	elif domain== 'Education':
		education.setup_data()
	elif domain== 'Healthcare':
		healthcare.setup_data()

	site = frappe.local.site
	frappe.destroy()
	frappe.init(site)
	frappe.connect()

	simulate(domain, days)