Example #1
0
def execute():
    frappe.reload_doc('accounts',
                      'doctype',
                      'allowed_to_transact_with',
                      force=True)
    frappe.reload_doc('accounts', 'doctype', 'pricing_rule_detail', force=True)
    frappe.reload_doc('crm', 'doctype', 'lost_reason_detail', force=True)
    frappe.reload_doc('crm', 'doctype', 'lead', force=True)

    company = frappe.get_all('Company', filters={'country': 'United States'})
    if not company:
        return

    make_custom_fields()
def execute():
    company = frappe.get_all('Company', filters = {'country': 'United States'})
    if not company:
        return

    make_custom_fields()
def execute():
    company = frappe.get_all("Company", filters={"country": "United States"})
    if not company:
        return

    make_custom_fields()