[minor] fix error message

This commit is contained in:
Rushabh Mehta 2015-11-30 10:51:29 +05:30
parent 8d968ceb94
commit 32e55e174d

View File

@ -750,6 +750,9 @@ def get_exchange_rate(account, account_currency=None, company=None,
account_details = frappe.db.get_value("Account", account,
["account_type", "root_type", "account_currency", "company"], as_dict=1)
if not account_details:
frappe.throw(_("Please select correct account"))
if not company:
company = account_details.company