Update move_item_tax_to_item_tax_template.py

This commit is contained in:
Nabin Hait 2019-04-24 23:34:04 +05:30 committed by GitHub
parent 80a5cb3dcc
commit 2cb57dc3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ def get_item_tax_template(item_tax_templates, rename_template_to_untitled, item_
account_name = " - ".join(parts[:-1])
company = frappe.db.get_value("Company", filters={"abbr": parts[-1]})
parent_account = frappe.db.get_value("Account",
filters={"account_type": "Tax", "root_type": "Liability"}, "parent_account")
filters={"account_type": "Tax", "root_type": "Liability"}, fieldname="parent_account")
frappe.get_doc({
"doctype": "Account",