mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Added maintenance to Asset and enhanced maintenance for Asset Maintenance
This commit is contained in:
@@ -98,14 +98,6 @@ def get_data():
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Item",
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset",
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset Category",
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -274,11 +266,6 @@ def get_data():
|
||||
"name": "Period Closing Voucher",
|
||||
"description": _("Close Balance Sheet and book Profit or Loss.")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset Movement",
|
||||
"description": _("Transfer an asset from one warehouse to another")
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Cheque Print Template",
|
||||
|
||||
77
erpnext/config/assets.py
Normal file
77
erpnext/config/assets.py
Normal file
@@ -0,0 +1,77 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return [
|
||||
{
|
||||
"label": _("Assets"),
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset",
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset Category",
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Maintenance"),
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset Maintenance Team",
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset Maintenance",
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset Maintenance Tasks",
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset Maintenance Log",
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset Repair",
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Tools"),
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Asset Movement",
|
||||
"description": _("Transfer an asset from one warehouse to another")
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Reports"),
|
||||
"icon": "fa fa-table",
|
||||
"items": [
|
||||
{
|
||||
"type": "report",
|
||||
"name": "Asset Depreciation Ledger",
|
||||
"doctype": "Asset",
|
||||
"is_query_report": True,
|
||||
},
|
||||
{
|
||||
"type": "report",
|
||||
"name": "Asset Depreciations and Balances",
|
||||
"doctype": "Asset",
|
||||
"is_query_report": True,
|
||||
},
|
||||
{
|
||||
"type": "report",
|
||||
"name": "Asset Maintenance",
|
||||
"doctype": "Asset Maintenance"
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -293,5 +293,11 @@ def get_data():
|
||||
"_doctype": "Restaurant",
|
||||
"link": "List/Restaurant",
|
||||
"label": _("Restaurant")
|
||||
}
|
||||
},
|
||||
{
|
||||
"module_name": "Assets",
|
||||
"color": "#4286f4",
|
||||
"icon": "octicon octicon-database",
|
||||
"type": "module"
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user