<commit_before>from __future__ import unicode_literals
import frappe
from erpnext.regional.india.setup import make_custom_fields

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

    make_custom_fields()<commit_msg>patch: reloads newly created docs in v12 (#18148)<commit_after>from __future__ import unicode_literals
import frappe
from erpnext.regional.india.setup import make_custom_fields

def execute():
    frappe.reload_doc("accounts", "doctype", "tax_category")
    frappe.reload_doc("stock", "doctype", "item_manufacturer")
    company = frappe.get_all('Company', filters = {'country': 'India'})
    if not company:
        return

    make_custom_fields()
{'fraction_non_alphanumeric': 0.10840108401084012, 'fraction_numerical': 0.009485094850948509, 'mean_word_length': 5.057377049180328, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '137372', 'n_tokens_mistral': 239, 'n_tokens_neox': 228, 'n_words': 56}