fix: prevent translation of icon class names for workflow states in select options

This commit is contained in:
prathameshkurunkar7 2026-02-20 12:54:03 +05:30
parent 66877405e1
commit a879b8dd65

View file

@ -329,6 +329,9 @@ def get_messages_from_doctype(name):
if d.fieldtype == "Select" and d.options:
options = d.options.split("\n")
# for workflow state, we don't want to translate the icon(css classnames)
if d.fieldname == "icon" and name == "Workflow State":
continue
if "icon" not in options[0]:
messages.extend(options)
if d.fieldtype == "HTML" and d.options: