fix: dont translate desktop icon
This commit is contained in:
parent
a0caf8e320
commit
fbf4e29e25
1 changed files with 4 additions and 5 deletions
|
|
@ -179,16 +179,15 @@ def get_desktop_icons(user=None):
|
|||
user_icons.sort(key=lambda a: a.idx)
|
||||
|
||||
# translate
|
||||
for d in user_icons:
|
||||
if d.label:
|
||||
d.label = _(d.label, context=d.parent)
|
||||
# for d in user_icons:
|
||||
# if d.label:
|
||||
# d.label = _(d.label, context=d.parent)
|
||||
# includes
|
||||
permitted_icons = []
|
||||
permitted_parent_labels = set()
|
||||
|
||||
for s in user_icons:
|
||||
icon = frappe.get_lazy_doc("Desktop Icon", s)
|
||||
|
||||
icon = frappe.get_doc("Desktop Icon", s)
|
||||
if icon.is_permitted():
|
||||
permitted_icons.append(s)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue