Add a patch to rename accounts desktop icon to accounting

This commit is contained in:
Suraj Shetty 2018-12-24 17:00:40 +05:30
parent 67b311e95e
commit 9c3dcfea76
3 changed files with 12 additions and 1 deletions

View File

@ -579,4 +579,5 @@ erpnext.patches.v10_0.update_user_image_in_employee
erpnext.patches.v11_0.update_delivery_trip_status
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.replace_project_list_desktop_icon_with_projects_module_desktop_icon
erpnext.patches.v12_0.replace_project_list_desktop_icon_with_projects_module_desktop_icon
erpnext.patches.v12_0.rename_accounts_desktop_icon_to_accounting

View File

@ -0,0 +1,10 @@
import frappe
from frappe import _
def execcute():
accounts_module_icons = frappe.get_all('Desktop Icon', filters={
'module_name': 'Accounts'
}, fields=['name'])
for icon in accounts_module_icons:
frappe.db.set_value('Desktop Icon', icon.name, 'label', _('Accounting'))