Merge branch 'develop' of https://github.com/frappe/erpnext into email_digest
This commit is contained in:
commit
7278834d25
@ -575,9 +575,9 @@ def get_data():
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"module_name": "Quality Management",
|
"module_name": "Quality Management",
|
||||||
"color": "blue",
|
"color": "#1abc9c",
|
||||||
"icon": "octicon octicon-package",
|
"icon": "fa fa-check-square-o",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"label": _("Quality Management")
|
"label": _("Quality")
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -580,6 +580,7 @@ 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.rename_bom_wo_fields
|
erpnext.patches.v11_0.rename_bom_wo_fields
|
||||||
|
erpnext.patches.v12_0.change_qms_icon
|
||||||
erpnext.patches.v12_0.rename_learn_to_help
|
erpnext.patches.v12_0.rename_learn_to_help
|
||||||
erpnext.patches.v12_0.rename_accounts_desktop_icon_to_accounting
|
erpnext.patches.v12_0.rename_accounts_desktop_icon_to_accounting
|
||||||
erpnext.patches.v12_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
|
||||||
|
10
erpnext/patches/v12_0/change_qms_icon.py
Normal file
10
erpnext/patches/v12_0/change_qms_icon.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
qms_icons = frappe.get_all("Desktop Icon", filters={
|
||||||
|
"module_name": "Quality Management"
|
||||||
|
})
|
||||||
|
|
||||||
|
for icon in qms_icons:
|
||||||
|
frappe.db.set_value('Desktop Icon', icon.name, 'color', '#1abc9c')
|
||||||
|
frappe.db.set_value('Desktop Icon', icon.name, 'icon', 'fa fa-check-square-o')
|
@ -0,0 +1,10 @@
|
|||||||
|
import frappe
|
||||||
|
from frappe import _
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
quality_management_module_icons = frappe.get_all('Desktop Icon', filters={
|
||||||
|
'module_name': 'Quality Management'
|
||||||
|
}, fields=['name'])
|
||||||
|
|
||||||
|
for icon in quality_management_module_icons:
|
||||||
|
frappe.db.set_value('Desktop Icon', icon.name, 'label', _('Quality'))
|
@ -28,19 +28,4 @@ def create_feedback():
|
|||||||
|
|
||||||
def get_feedback():
|
def get_feedback():
|
||||||
feedback = frappe.get_list("Customer Feedback", limit=1)
|
feedback = frappe.get_list("Customer Feedback", limit=1)
|
||||||
return feedback[0]
|
return feedback[0]
|
||||||
|
|
||||||
#def create_feedback_template():
|
|
||||||
# template = frappe.get_doc({
|
|
||||||
# "doctype": "Customer Feedback Template",
|
|
||||||
# "template": "_Test Customer Feedback Template",
|
|
||||||
# "scope": "Company",
|
|
||||||
# "feedback_parameter": [
|
|
||||||
# {
|
|
||||||
# "parameter": "_Test Customer Feedback Template Parameter",
|
|
||||||
# }
|
|
||||||
# ]
|
|
||||||
# })
|
|
||||||
# template_exist = frappe.get_list("Customer Feedback Template", filters={"template": ""+ template.template +""}, fields=["name"])
|
|
||||||
# if len(template_exist) == 0:
|
|
||||||
# template.insert()
|
|
Loading…
Reference in New Issue
Block a user