Merge pull request #20381 from nextchamp-saqib/small-fix-asset

fix: tuple index out of range error
This commit is contained in:
Deepesh Garg 2020-01-23 15:03:00 +05:30 committed by GitHub
commit 32be74e40d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))