fix: Ignore item tax patch if old schema does not exists
This commit is contained in:
parent
e6ee43b102
commit
398e4b9472
@ -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 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user