From eaa3614155838df0ddcdb11f3154a9cb94f86b11 Mon Sep 17 00:00:00 2001 From: Subin Tom Date: Thu, 7 Oct 2021 12:20:56 +0530 Subject: [PATCH] fix: patch fix added reload_doctype --- .../patches/v13_0/custom_fields_for_taxjar_integration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/v13_0/custom_fields_for_taxjar_integration.py b/erpnext/patches/v13_0/custom_fields_for_taxjar_integration.py index 139d8e43c1..1678434842 100644 --- a/erpnext/patches/v13_0/custom_fields_for_taxjar_integration.py +++ b/erpnext/patches/v13_0/custom_fields_for_taxjar_integration.py @@ -7,6 +7,9 @@ from erpnext.erpnext_integrations.doctype.taxjar_settings.taxjar_settings import def execute(): + + frappe.reload_doctype("Taxjar Settings") + TAXJAR_CREATE_TRANSACTIONS = frappe.db.get_single_value("TaxJar Settings", "taxjar_create_transactions") TAXJAR_CALCULATE_TAX = frappe.db.get_single_value("TaxJar Settings", "taxjar_calculate_tax") TAXJAR_SANDBOX_MODE = frappe.db.get_single_value("TaxJar Settings", "is_sandbox") @@ -15,7 +18,7 @@ def execute(): if not company or (not TAXJAR_CREATE_TRANSACTIONS and not TAXJAR_CALCULATE_TAX and not TAXJAR_SANDBOX_MODE): return - frappe.reload_doc("regional", "doctype", "product_tax_category") + frappe.reload_doctype("Product Tax Category") custom_fields = { 'Sales Invoice Item': [