Skip to content

Commit

Permalink
fix: patch fix added reload_doctype
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesis189 committed Oct 7, 2021
1 parent 3ece05a commit eaa3614
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@


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")
Expand All @@ -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': [
Expand Down

0 comments on commit eaa3614

Please sign in to comment.