fix: travis

This commit is contained in:
Saqib Ansari
2020-04-09 12:41:24 +05:30
parent 474222074b
commit debee1c977
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ class AssetCategory(Document):
for fieldname in account_type_map.keys():
if d.get(fieldname):
selected_account = d.get(fieldname)
key_to_match = account_type_map[fieldname].keys()[0]
key_to_match = account_type_map.get(fieldname).keys()[0] # acount_type or root_type
selected_key_type = frappe.db.get_value('Account', selected_account, key_to_match)
expected_key_type = account_type_map[fieldname][key_to_match]