Merge pull request #26901 from mahsem/fix-translation-in-load.py
fix: translation in load.py
This commit is contained in:
commit
bdb180da2a
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def getdoc(doctype, name, user=None):
|
|||
|
||||
if not doc.has_permission("read"):
|
||||
frappe.flags.error_message = _("Insufficient Permission for {0}").format(
|
||||
frappe.bold(doctype + " " + name)
|
||||
frappe.bold(_(doctype) + " " + name)
|
||||
)
|
||||
raise frappe.PermissionError(("read", doctype, name))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue