mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 13:12:22 +01:00
fix: add translate function to valitate company msg in chart of accounts importer
(cherry picked from commit 637c08d189)
This commit is contained in:
@@ -52,7 +52,7 @@ def validate_company(company):
|
|||||||
if parent_company and (not allow_account_creation_against_child_company):
|
if parent_company and (not allow_account_creation_against_child_company):
|
||||||
msg = _("{} is a child company.").format(frappe.bold(company)) + " "
|
msg = _("{} is a child company.").format(frappe.bold(company)) + " "
|
||||||
msg += _("Please import accounts against parent company or enable {} in company master.").format(
|
msg += _("Please import accounts against parent company or enable {} in company master.").format(
|
||||||
frappe.bold("Allow Account Creation Against Child Company")
|
frappe.bold(_("Allow Account Creation Against Child Company"))
|
||||||
)
|
)
|
||||||
frappe.throw(msg, title=_("Wrong Company"))
|
frappe.throw(msg, title=_("Wrong Company"))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user