style: Fix invalid translation syntax usages

This commit is contained in:
Suraj Shetty
2021-02-01 20:09:20 +05:30
parent 8fef3a3814
commit f57efd1150
3 changed files with 10 additions and 7 deletions

View File

@@ -89,8 +89,9 @@ class Company(NestedSet):
frappe.throw(_("Account {0} does not belong to company: {1}").format(self.get(account[1]), self.name))
if get_account_currency(self.get(account[1])) != self.default_currency:
frappe.throw(_("""{0} currency must be same as company's default currency.
Please select another account""").format(frappe.bold(account[0])))
error_message = _("{0} currency must be same as company's default currency. Please select another account.") \
.format(frappe.bold(account[0]))
frappe.throw(error_message)
def validate_currency(self):
if self.is_new():