Skip to content

Commit

Permalink
fix: add translate function to valitate company msg in chart of accou…
Browse files Browse the repository at this point in the history
…nts importer

(cherry picked from commit 637c08d)
  • Loading branch information
ernestoruiz89 authored and mergify[bot] committed Nov 10, 2022
1 parent 6f61685 commit 8de4430
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

Expand Down

0 comments on commit 8de4430

Please sign in to comment.