Replace desktop icon for project list with desktop icon for projects module
- Add a patch to fix already install instances
This commit is contained in:
parent
a8d9bfdcfd
commit
b0a84f014e
@ -38,12 +38,10 @@ def get_data():
|
|||||||
"link": "List/Employee"
|
"link": "List/Employee"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"module_name": "Project",
|
"module_name": "Projects",
|
||||||
"_doctype": "Project",
|
|
||||||
"color": "#8e44ad",
|
"color": "#8e44ad",
|
||||||
"icon": "octicon octicon-rocket",
|
"icon": "octicon octicon-rocket",
|
||||||
"type": "link",
|
"type": "module",
|
||||||
"link": "List/Project"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"module_name": "Issue",
|
"module_name": "Issue",
|
||||||
|
@ -579,3 +579,4 @@ erpnext.patches.v10_0.update_user_image_in_employee
|
|||||||
erpnext.patches.v11_0.update_delivery_trip_status
|
erpnext.patches.v11_0.update_delivery_trip_status
|
||||||
erpnext.patches.v10_0.repost_gle_for_purchase_receipts_with_rejected_items
|
erpnext.patches.v10_0.repost_gle_for_purchase_receipts_with_rejected_items
|
||||||
erpnext.patches.v11_0.set_missing_gst_hsn_code
|
erpnext.patches.v11_0.set_missing_gst_hsn_code
|
||||||
|
erpnext.patches.v11_0.replace_project_list_desktop_icon_with_projects_module_desktop_icon
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
frappe.db.sql("""DELETE
|
||||||
|
FROM `tabDesktop Icon`
|
||||||
|
WHERE
|
||||||
|
`module_name` in ('Project', 'Projects') AND
|
||||||
|
`standard`=1 AND
|
||||||
|
`app`='erpnext'
|
||||||
|
""")
|
||||||
|
|
||||||
|
desktop_icon = frappe.get_doc({
|
||||||
|
'doctype': 'Desktop Icon',
|
||||||
|
'idx': 5,
|
||||||
|
'standard': 1,
|
||||||
|
'app': 'erpnext',
|
||||||
|
'owner': 'Administrator',
|
||||||
|
'module_name': 'Projects',
|
||||||
|
'color': '#8e44ad',
|
||||||
|
'icon': 'octicon octicon-rocket',
|
||||||
|
'type': 'module'
|
||||||
|
})
|
||||||
|
|
||||||
|
desktop_icon.save()
|
Loading…
x
Reference in New Issue
Block a user