fix: doc name cannot be translated
This commit is contained in:
parent
ac894ae560
commit
de4c275e66
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