2015-02-24 06:54:53 +00:00
|
|
|
from __future__ import unicode_literals
|
2020-05-25 16:16:04 +00:00
|
|
|
import frappe
|
2014-03-03 09:35:28 +00:00
|
|
|
from frappe import _
|
|
|
|
|
2014-05-08 06:13:18 +00:00
|
|
|
def get_data():
|
2020-05-25 16:16:04 +00:00
|
|
|
config = [
|
2019-02-07 03:48:24 +00:00
|
|
|
{
|
|
|
|
"label": _("Purchasing"),
|
|
|
|
"icon": "fa fa-star",
|
|
|
|
"items": [
|
2020-02-28 07:28:41 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Material Request",
|
|
|
|
"onboard": 1,
|
|
|
|
"dependencies": ["Item"],
|
|
|
|
"description": _("Request for purchase."),
|
|
|
|
},
|
2019-02-07 03:48:24 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Purchase Order",
|
|
|
|
"onboard": 1,
|
|
|
|
"dependencies": ["Item", "Supplier"],
|
|
|
|
"description": _("Purchase Orders given to Suppliers."),
|
|
|
|
},
|
2019-08-28 12:21:31 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Purchase Invoice",
|
|
|
|
"onboard": 1,
|
|
|
|
"dependencies": ["Item", "Supplier"]
|
|
|
|
},
|
2019-02-07 03:48:24 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Request for Quotation",
|
|
|
|
"onboard": 1,
|
|
|
|
"dependencies": ["Item", "Supplier"],
|
|
|
|
"description": _("Request for quotation."),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Supplier Quotation",
|
|
|
|
"dependencies": ["Item", "Supplier"],
|
|
|
|
"description": _("Quotations received from Suppliers."),
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2019-01-31 09:20:22 +00:00
|
|
|
{
|
|
|
|
"label": _("Items and Pricing"),
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Item",
|
|
|
|
"onboard": 1,
|
|
|
|
"description": _("All Products or Services."),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Item Price",
|
|
|
|
"description": _("Multiple Item prices."),
|
|
|
|
"onboard": 1,
|
2019-02-28 06:21:36 +00:00
|
|
|
"route": "#Report/Item Price"
|
2019-01-31 09:20:22 +00:00
|
|
|
},
|
2019-02-06 11:32:41 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Price List",
|
|
|
|
"description": _("Price List master.")
|
|
|
|
},
|
2020-02-28 07:28:41 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Pricing Rule",
|
|
|
|
"description": _("Rules for applying pricing and discount.")
|
|
|
|
},
|
2019-01-31 09:20:22 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Product Bundle",
|
|
|
|
"description": _("Bundle items at time of sale."),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Item Group",
|
|
|
|
"icon": "fa fa-sitemap",
|
|
|
|
"label": _("Item Group"),
|
|
|
|
"link": "Tree/Item Group",
|
|
|
|
"description": _("Tree of Item Groups."),
|
|
|
|
},
|
2019-06-14 11:59:26 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Promotional Scheme",
|
|
|
|
"description": _("Rules for applying different promotional schemes.")
|
|
|
|
}
|
2019-01-31 09:20:22 +00:00
|
|
|
]
|
|
|
|
},
|
2014-05-08 06:13:18 +00:00
|
|
|
{
|
2019-02-11 09:44:50 +00:00
|
|
|
"label": _("Settings"),
|
2019-02-07 03:48:24 +00:00
|
|
|
"icon": "fa fa-cog",
|
2014-05-08 06:13:18 +00:00
|
|
|
"items": [
|
2019-02-06 11:32:41 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-07 03:48:24 +00:00
|
|
|
"name": "Buying Settings",
|
2019-03-04 08:30:02 +00:00
|
|
|
"settings": 1,
|
2019-02-07 03:48:24 +00:00
|
|
|
"description": _("Default settings for buying transactions.")
|
2014-05-08 06:13:18 +00:00
|
|
|
},
|
2016-03-03 08:30:35 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-07 03:48:24 +00:00
|
|
|
"name": "Purchase Taxes and Charges Template",
|
|
|
|
"description": _("Tax template for buying transactions.")
|
2016-03-03 08:30:35 +00:00
|
|
|
},
|
2014-05-08 06:13:18 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
2019-02-07 03:48:24 +00:00
|
|
|
"name":"Terms and Conditions",
|
|
|
|
"label": _("Terms and Conditions Template"),
|
|
|
|
"description": _("Template of terms or contract.")
|
2014-05-08 06:13:18 +00:00
|
|
|
},
|
2016-03-08 12:36:21 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": _("Supplier"),
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Supplier",
|
2019-01-31 09:20:22 +00:00
|
|
|
"onboard": 1,
|
2016-03-08 12:36:21 +00:00
|
|
|
"description": _("Supplier database."),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
2018-04-19 13:07:29 +00:00
|
|
|
"name": "Supplier Group",
|
|
|
|
"description": _("Supplier Group master.")
|
2016-03-08 12:36:21 +00:00
|
|
|
},
|
2014-05-08 06:13:18 +00:00
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Contact",
|
|
|
|
"description": _("All Contacts."),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Address",
|
|
|
|
"description": _("All Addresses."),
|
|
|
|
},
|
2016-03-08 12:36:21 +00:00
|
|
|
|
2014-05-08 06:13:18 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2019-02-07 03:48:24 +00:00
|
|
|
"label": _("Key Reports"),
|
2016-12-07 05:38:48 +00:00
|
|
|
"icon": "fa fa-table",
|
2014-05-08 06:13:18 +00:00
|
|
|
"items": [
|
|
|
|
{
|
2018-11-12 11:31:02 +00:00
|
|
|
"type": "report",
|
|
|
|
"is_query_report": True,
|
|
|
|
"name": "Purchase Analytics",
|
2019-02-06 11:32:41 +00:00
|
|
|
"reference_doctype": "Purchase Order",
|
|
|
|
"onboard": 1
|
2014-05-08 06:13:18 +00:00
|
|
|
},
|
2016-03-08 12:36:21 +00:00
|
|
|
{
|
|
|
|
"type": "report",
|
|
|
|
"is_query_report": True,
|
|
|
|
"name": "Purchase Order Trends",
|
2019-02-06 11:32:41 +00:00
|
|
|
"reference_doctype": "Purchase Order",
|
|
|
|
"onboard": 1,
|
2016-03-08 12:36:21 +00:00
|
|
|
},
|
2019-07-22 05:46:40 +00:00
|
|
|
{
|
|
|
|
"type": "report",
|
|
|
|
"is_query_report": True,
|
|
|
|
"name": "Procurement Tracker",
|
|
|
|
"reference_doctype": "Purchase Order",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
2019-02-07 03:48:24 +00:00
|
|
|
{
|
|
|
|
"type": "report",
|
|
|
|
"is_query_report": True,
|
2020-05-06 13:04:07 +00:00
|
|
|
"name": "Requested Items To Order",
|
2019-02-07 03:48:24 +00:00
|
|
|
"reference_doctype": "Material Request",
|
|
|
|
"onboard": 1,
|
|
|
|
},
|
2020-02-28 07:28:41 +00:00
|
|
|
{
|
|
|
|
"type": "report",
|
|
|
|
"is_query_report": True,
|
|
|
|
"name": "Address And Contacts",
|
|
|
|
"label": _("Supplier Addresses And Contacts"),
|
|
|
|
"reference_doctype": "Address",
|
|
|
|
"route_options": {
|
|
|
|
"party_type": "Supplier"
|
|
|
|
}
|
|
|
|
}
|
2014-05-08 06:13:18 +00:00
|
|
|
]
|
|
|
|
},
|
2017-07-24 17:12:30 +00:00
|
|
|
{
|
|
|
|
"label": _("Supplier Scorecard"),
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Supplier Scorecard",
|
|
|
|
"description": _("All Supplier scorecards."),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Supplier Scorecard Variable",
|
|
|
|
"description": _("Templates of supplier scorecard variables.")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Supplier Scorecard Criteria",
|
|
|
|
"description": _("Templates of supplier scorecard criteria."),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Supplier Scorecard Standing",
|
|
|
|
"description": _("Templates of supplier standings."),
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
},
|
2014-05-08 06:13:18 +00:00
|
|
|
{
|
2016-03-08 12:36:21 +00:00
|
|
|
"label": _("Other Reports"),
|
2016-12-07 05:38:48 +00:00
|
|
|
"icon": "fa fa-list",
|
2014-05-08 06:13:18 +00:00
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "report",
|
|
|
|
"is_query_report": True,
|
|
|
|
"name": "Items To Be Requested",
|
2019-02-06 11:32:41 +00:00
|
|
|
"reference_doctype": "Item",
|
|
|
|
"onboard": 1,
|
2014-05-08 06:13:18 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "report",
|
|
|
|
"is_query_report": True,
|
2019-02-06 11:32:41 +00:00
|
|
|
"name": "Item-wise Purchase History",
|
|
|
|
"reference_doctype": "Item",
|
|
|
|
"onboard": 1,
|
2014-05-08 06:13:18 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "report",
|
|
|
|
"is_query_report": True,
|
2020-02-28 07:28:41 +00:00
|
|
|
"name": "Supplier-Wise Sales Analytics",
|
|
|
|
"reference_doctype": "Stock Ledger Entry",
|
|
|
|
"onboard": 1
|
2014-05-08 06:13:18 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "report",
|
|
|
|
"is_query_report": True,
|
2020-02-28 07:28:41 +00:00
|
|
|
"name": "Material Requests for which Supplier Quotations are not created",
|
|
|
|
"reference_doctype": "Material Request"
|
2018-06-05 05:14:36 +00:00
|
|
|
}
|
2014-05-08 06:13:18 +00:00
|
|
|
]
|
|
|
|
},
|
2019-07-22 05:46:40 +00:00
|
|
|
|
2014-05-08 06:13:18 +00:00
|
|
|
]
|
2020-05-25 16:16:04 +00:00
|
|
|
|
|
|
|
regional = {
|
|
|
|
"label": _("Regional"),
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "doctype",
|
|
|
|
"name": "Import Supplier Invoice",
|
|
|
|
"description": _("Import Italian Supplier Invoice."),
|
|
|
|
"onboard": 1,
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
countries = frappe.get_all("Company", fields="country")
|
|
|
|
countries = [country["country"] for country in countries]
|
|
|
|
if "Italy" in countries:
|
|
|
|
config.append(regional)
|
|
|
|
return config
|