From e7154f155b3d3b767c7e60d59af462a25dde8bd6 Mon Sep 17 00:00:00 2001 From: thefalconx33 Date: Wed, 22 Jan 2020 12:22:55 +0530 Subject: [PATCH] fix: tuple index out of range error --- erpnext/assets/doctype/asset/asset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/assets/doctype/asset/asset.py b/erpnext/assets/doctype/asset/asset.py index 86b5a11a1d..0df6a6c7de 100644 --- a/erpnext/assets/doctype/asset/asset.py +++ b/erpnext/assets/doctype/asset/asset.py @@ -620,7 +620,7 @@ def get_asset_account(account_name, asset=None, asset_category=None, company=Non if not account: if not asset_category: - frappe.throw(_("Set {0} in company {2}").format(account_name.replace('_', ' ').title(), company)) + frappe.throw(_("Set {0} in company {1}").format(account_name.replace('_', ' ').title(), company)) else: frappe.throw(_("Set {0} in asset category {1} or company {2}") .format(account_name.replace('_', ' ').title(), asset_category, company))