From 64f92fed897b71360c3e02399a852de3313b8433 Mon Sep 17 00:00:00 2001 From: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> Date: Tue, 12 Oct 2021 13:04:25 +0530 Subject: [PATCH] fix: Update pacthes.txt --- .../patches/v13_0/custom_fields_for_taxjar_integration.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 4f38af45233f..49c2a3bc2e4f 100644 --- a/erpnext/patches/v13_0/custom_fields_for_taxjar_integration.py +++ b/erpnext/patches/v13_0/custom_fields_for_taxjar_integration.py @@ -7,13 +7,14 @@ def execute(): + frappe.reload_doctype("TaxJar Settings", force=True) + frappe.reload_doctype("Product Tax Category", force=True) company = frappe.get_all('Company', filters = {'country': 'United States'}, fields=['name']) if not company: return - frappe.reload_doctype("TaxJar Settings", force=True) - + 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") @@ -21,8 +22,6 @@ def execute(): if (not TAXJAR_CREATE_TRANSACTIONS and not TAXJAR_CALCULATE_TAX and not TAXJAR_SANDBOX_MODE): return - frappe.reload_doctype("Product Tax Category") - custom_fields = { 'Sales Invoice Item': [ dict(fieldname='product_tax_category', fieldtype='Link', insert_after='description', options='Product Tax Category',