fix: Ignore item tax patch if old schema does not exists

This commit is contained in:
Nabin Hait 2019-04-05 16:41:17 +05:30
parent e6ee43b102
commit 398e4b9472

View File

@ -3,6 +3,8 @@ import json
from six import iteritems from six import iteritems
def execute(): def execute():
if "tax_type" not in frappe.db.get_table_columns("Item Tax"):
return
old_item_taxes = {} old_item_taxes = {}
item_tax_templates = {} item_tax_templates = {}
rename_template_to_untitled = [] rename_template_to_untitled = []