* feat: Disable CWIP Accounting checkbox added in Company and Asset Category Asset Settings is removed completely Disable CWIP Accounting checkbox will give priority to Asset Category * fix: Changed checkbox name to 'Enable Capital Work in Progress Accounting' - checkbox will be disabled by default - Enabling it in Company will globally enable it - When globally disabled , it's value on the asset category will be considered * chore: Added patch to set pre-existing CWIP checkbox value into new checkbox * fix(test): Asset * fix: Asset Test and Patch * fix(test): Opening Invoice Creation Tool * Update asset.py * fix: Patch and other fixes
		
			
				
	
	
		
			95 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			95 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from __future__ import unicode_literals
 | |
| from frappe import _
 | |
| 
 | |
| def get_data():
 | |
| 	return [
 | |
| 		{
 | |
| 			"label": _("Assets"),
 | |
| 			"items": [
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Asset",
 | |
| 					"onboard": 1,
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Location",
 | |
| 					"onboard": 1,
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Asset Category",
 | |
| 					"onboard": 1,
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Asset Movement",
 | |
| 					"description": _("Transfer an asset from one warehouse to another")
 | |
| 				},
 | |
| 			]
 | |
| 		},
 | |
| 		{
 | |
| 			"label": _("Maintenance"),
 | |
| 			"items": [
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Asset Maintenance Team",
 | |
| 					"onboard": 1,
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Asset Maintenance",
 | |
| 					"onboard": 1,
 | |
| 					"dependencies": ["Asset Maintenance Team"],
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Asset Maintenance Tasks",
 | |
| 					"onboard": 1,
 | |
| 					"dependencies": ["Asset Maintenance"],
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Asset Maintenance Log",
 | |
| 					"dependencies": ["Asset Maintenance"],
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Asset Value Adjustment",
 | |
| 					"dependencies": ["Asset"],
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "doctype",
 | |
| 					"name": "Asset Repair",
 | |
| 					"dependencies": ["Asset"],
 | |
| 				},
 | |
| 			]
 | |
| 		},
 | |
| 		{
 | |
| 			"label": _("Reports"),
 | |
| 			"icon": "fa fa-table",
 | |
| 			"items": [
 | |
| 				{
 | |
| 					"type": "report",
 | |
| 					"name": "Asset Depreciation Ledger",
 | |
| 					"doctype": "Asset",
 | |
| 					"is_query_report": True,
 | |
| 					"dependencies": ["Asset"],
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "report",
 | |
| 					"name": "Asset Depreciations and Balances",
 | |
| 					"doctype": "Asset",
 | |
| 					"is_query_report": True,
 | |
| 					"dependencies": ["Asset"],
 | |
| 				},
 | |
| 				{
 | |
| 					"type": "report",
 | |
| 					"name": "Asset Maintenance",
 | |
| 					"doctype": "Asset Maintenance",
 | |
| 					"dependencies": ["Asset Maintenance"]
 | |
| 				},
 | |
| 			]
 | |
| 		}
 | |
| 	]
 |