fix: Refactor dashboard links in leave policy (#22519)
* fix: refactor dashboard links in leave policy * fx: code fix * fix: add labels to links * fix: code change
This commit is contained in:
parent
fdbd10f193
commit
ec84afa86d
@ -1,4 +1,5 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
from frappe import _
|
||||||
|
|
||||||
def get_data():
|
def get_data():
|
||||||
return {
|
return {
|
||||||
@ -8,13 +9,17 @@ def get_data():
|
|||||||
},
|
},
|
||||||
'transactions': [
|
'transactions': [
|
||||||
{
|
{
|
||||||
'items': ['Employee']
|
'label': _('Employees'),
|
||||||
},
|
'items': ['Employee', 'Employee Grade']
|
||||||
{
|
|
||||||
'items': ['Employee Grade']
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
'label': _('Leaves'),
|
||||||
'items': ['Leave Allocation']
|
'items': ['Leave Allocation']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user