Merge pull request #20381 from nextchamp-saqib/small-fix-asset
fix: tuple index out of range error
This commit is contained in:
commit
32be74e40d
@ -620,7 +620,7 @@ def get_asset_account(account_name, asset=None, asset_category=None, company=Non
|
|||||||
|
|
||||||
if not account:
|
if not account:
|
||||||
if not asset_category:
|
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:
|
else:
|
||||||
frappe.throw(_("Set {0} in asset category {1} or company {2}")
|
frappe.throw(_("Set {0} in asset category {1} or company {2}")
|
||||||
.format(account_name.replace('_', ' ').title(), asset_category, company))
|
.format(account_name.replace('_', ' ').title(), asset_category, company))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user