fix: transalation syntax

This commit is contained in:
Saqib Ansari 2020-10-16 10:47:29 +05:30
parent a2d6f254c5
commit 1dec68e8e4

View File

@ -171,9 +171,10 @@ class Account(NestedSet):
.format(company_bold, parent_acc_name_bold), title=_("Account Not Found")) .format(company_bold, parent_acc_name_bold), title=_("Account Not Found"))
if (frappe.db.get_value("Account", self.parent_account, "is_group") if (frappe.db.get_value("Account", self.parent_account, "is_group")
and not frappe.db.get_value("Account", parent_acc_name_map[company], "is_group")): and not frappe.db.get_value("Account", parent_acc_name_map[company], "is_group")):
frappe.throw(_("While creating account for Child Company {0}, parent account {1} is found \ msg = _("While creating account for Child Company {0}, parent account {1} found as a ledger account.").format(company_bold, parent_acc_name_bold)
as a ledger account.<br><br>Please convert the parent account in corresponding child company COA to a group account.") msg += "<br><br>"
.format(company_bold, parent_acc_name_bold), title=_("Invalid Parent Account")) msg = _("Please convert the parent account in corresponding child company to a group account.")
frappe.throw(msg), title=_("Invalid Parent Account"))
filters = { filters = {
"account_name": self.account_name, "account_name": self.account_name,