diff --git a/erpnext/patches/v15_0/migrate_old_item_wise_tax_detail_data_to_table.py b/erpnext/patches/v15_0/migrate_old_item_wise_tax_detail_data_to_table.py index be1dd75e163..ccc7f350425 100644 --- a/erpnext/patches/v15_0/migrate_old_item_wise_tax_detail_data_to_table.py +++ b/erpnext/patches/v15_0/migrate_old_item_wise_tax_detail_data_to_table.py @@ -256,7 +256,7 @@ class ItemTax: # NOTE: Use item tax rate as same item code # could have different tax rates in same invoice - item_tax_rates = frappe.parse_json(item.item_tax_rate) + item_tax_rates = frappe.parse_json(item.item_tax_rate or {}) if item_tax_rates and tax_row.account_head in item_tax_rates: return item_tax_rates[tax_row.account_head]