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)
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)
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)
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)
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)