Merge pull request #32880 from ernestoruiz89/patch-7

fix: add translate function to valitate company msg in chart of accounts importer
This commit is contained in:
Deepesh Garg 2022-11-10 20:07:52 +05:30 committed by GitHub
commit f4920d6475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ def validate_company(company):
if parent_company and (not allow_account_creation_against_child_company):
msg = _("{} is a child company.").format(frappe.bold(company)) + " "
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"))