mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-24 12:36:37 +00:00
New Maintenance Module
This commit is contained in:
@@ -157,5 +157,12 @@ def get_data():
|
||||
"is_help": True,
|
||||
"label": _("Learn"),
|
||||
"hidden": 1
|
||||
},
|
||||
{
|
||||
"module_name": "Maintenance",
|
||||
"color": "#FF888B",
|
||||
"icon": "octicon octicon-tools",
|
||||
"type": "module",
|
||||
"label": _("Maintenance")
|
||||
}
|
||||
]
|
||||
|
||||
32
erpnext/config/maintenance.py
Normal file
32
erpnext/config/maintenance.py
Normal file
@@ -0,0 +1,32 @@
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return [
|
||||
{
|
||||
"label": _("Maintenance"),
|
||||
"icon": "icon-star",
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Maintenance Schedule",
|
||||
"description": _("Plan for maintenance visits."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Maintenance Visit",
|
||||
"description": _("Visit report for maintenance call."),
|
||||
},
|
||||
{
|
||||
"type": "report",
|
||||
"name": "Maintenance Schedules",
|
||||
"is_query_report": True,
|
||||
"doctype": "Maintenance Schedule"
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Warranty Claim",
|
||||
"description": _("Warranty Claim against Serial No."),
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -18,27 +18,6 @@ def get_data():
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Maintenance"),
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Maintenance Schedule",
|
||||
"description": _("Plan for maintenance visits."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Maintenance Visit",
|
||||
"description": _("Visit report for maintenance call."),
|
||||
},
|
||||
{
|
||||
"type": "report",
|
||||
"name": "Maintenance Schedules",
|
||||
"is_query_report": True,
|
||||
"doctype": "Maintenance Schedule"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Warranty"),
|
||||
"items": [
|
||||
|
||||
Reference in New Issue
Block a user