Fixed moduleview language issue

This commit is contained in:
Anand Doshi 2014-05-08 11:43:18 +05:30
parent 7e1b75a705
commit 08ef467fc6
9 changed files with 1532 additions and 1526 deletions

View File

@ -1,307 +1,308 @@
from frappe import _ from frappe import _
data = [ def get_data():
{ return [
"label": _("Documents"), {
"icon": "icon-star", "label": _("Documents"),
"items": [ "icon": "icon-star",
{ "items": [
"type": "doctype", {
"name": "Journal Voucher", "type": "doctype",
"description": _("Accounting journal entries.") "name": "Journal Voucher",
}, "description": _("Accounting journal entries.")
{ },
"type": "doctype", {
"name": "Sales Invoice", "type": "doctype",
"description": _("Bills raised to Customers.") "name": "Sales Invoice",
}, "description": _("Bills raised to Customers.")
{ },
"type": "doctype", {
"name": "Purchase Invoice", "type": "doctype",
"description": _("Bills raised by Suppliers.") "name": "Purchase Invoice",
}, "description": _("Bills raised by Suppliers.")
{ },
"type": "doctype", {
"name": "Customer", "type": "doctype",
"description": _("Customer database.") "name": "Customer",
}, "description": _("Customer database.")
{ },
"type": "doctype", {
"name": "Supplier", "type": "doctype",
"description": _("Supplier database.") "name": "Supplier",
}, "description": _("Supplier database.")
{ },
"type": "page", {
"name": "Accounts Browser", "type": "page",
"icon": "icon-sitemap", "name": "Accounts Browser",
"label": _("Chart of Accounts"), "icon": "icon-sitemap",
"route": "Accounts Browser/Account", "label": _("Chart of Accounts"),
"description": _("Tree of finanial accounts."), "route": "Accounts Browser/Account",
"doctype": "Account", "description": _("Tree of finanial accounts."),
}, "doctype": "Account",
] },
}, ]
{ },
"label": _("Tools"), {
"icon": "icon-wrench", "label": _("Tools"),
"items": [ "icon": "icon-wrench",
{ "items": [
"type": "doctype", {
"name": "Bank Reconciliation", "type": "doctype",
"description": _("Update bank payment dates with journals.") "name": "Bank Reconciliation",
}, "description": _("Update bank payment dates with journals.")
# { },
# "type": "doctype", # {
# "name": "Payment to Invoice Matching Tool", # "type": "doctype",
# "description": _("Match non-linked Invoices and Payments.") # "name": "Payment to Invoice Matching Tool",
# }, # "description": _("Match non-linked Invoices and Payments.")
{ # },
"type": "doctype", {
"name": "Period Closing Voucher", "type": "doctype",
"description": _("Close Balance Sheet and book Profit or Loss.") "name": "Period Closing Voucher",
}, "description": _("Close Balance Sheet and book Profit or Loss.")
] },
}, ]
{ },
"label": _("Setup"), {
"icon": "icon-cog", "label": _("Setup"),
"items": [ "icon": "icon-cog",
{ "items": [
"type": "doctype", {
"name": "Fiscal Year", "type": "doctype",
"description": _("Financial / accounting year.") "name": "Fiscal Year",
}, "description": _("Financial / accounting year.")
{ },
"type": "page", {
"name": "Accounts Browser", "type": "page",
"icon": "icon-sitemap", "name": "Accounts Browser",
"label": _("Chart of Accounts"), "icon": "icon-sitemap",
"route": "Accounts Browser/Account", "label": _("Chart of Accounts"),
"description": _("Tree of finanial accounts."), "route": "Accounts Browser/Account",
"doctype": "Account", "description": _("Tree of finanial accounts."),
}, "doctype": "Account",
{ },
"type": "page", {
"name": "Accounts Browser", "type": "page",
"icon": "icon-sitemap", "name": "Accounts Browser",
"label": _("Chart of Cost Centers"), "icon": "icon-sitemap",
"route": "Accounts Browser/Cost Center", "label": _("Chart of Cost Centers"),
"description": _("Tree of finanial Cost Centers."), "route": "Accounts Browser/Cost Center",
"doctype": "Cost Center", "description": _("Tree of finanial Cost Centers."),
}, "doctype": "Cost Center",
{ },
"type": "doctype", {
"name": "Accounts Settings", "type": "doctype",
"description": _("Default settings for accounting transactions.") "name": "Accounts Settings",
}, "description": _("Default settings for accounting transactions.")
{ },
"type": "doctype", {
"name": "Sales Taxes and Charges Master", "type": "doctype",
"description": _("Tax template for selling transactions.") "name": "Sales Taxes and Charges Master",
}, "description": _("Tax template for selling transactions.")
{ },
"type": "doctype", {
"name": "Purchase Taxes and Charges Master", "type": "doctype",
"description": _("Tax template for buying transactions.") "name": "Purchase Taxes and Charges Master",
}, "description": _("Tax template for buying transactions.")
{ },
"type": "doctype", {
"name": "POS Setting", "type": "doctype",
"label": _("Point-of-Sale Setting"), "name": "POS Setting",
"description": _("Rules to calculate shipping amount for a sale") "label": _("Point-of-Sale Setting"),
}, "description": _("Rules to calculate shipping amount for a sale")
{ },
"type": "doctype", {
"name": "Shipping Rule", "type": "doctype",
"description": _("Rules for adding shipping costs.") "name": "Shipping Rule",
}, "description": _("Rules for adding shipping costs.")
{ },
"type": "doctype", {
"name": "Pricing Rule", "type": "doctype",
"description": _("Rules for applying pricing and discount.") "name": "Pricing Rule",
}, "description": _("Rules for applying pricing and discount.")
{ },
"type": "doctype", {
"name": "Currency", "type": "doctype",
"description": _("Enable / disable currencies.") "name": "Currency",
}, "description": _("Enable / disable currencies.")
{ },
"type": "doctype", {
"name": "Currency Exchange", "type": "doctype",
"description": _("Currency exchange rate master.") "name": "Currency Exchange",
}, "description": _("Currency exchange rate master.")
{ },
"type":"doctype", {
"name": "Budget Distribution", "type":"doctype",
"description": _("Seasonality for setting budgets.") "name": "Budget Distribution",
}, "description": _("Seasonality for setting budgets.")
{ },
"type": "doctype", {
"name":"Terms and Conditions", "type": "doctype",
"label": _("Terms and Conditions Template"), "name":"Terms and Conditions",
"description": _("Template of terms or contract.") "label": _("Terms and Conditions Template"),
}, "description": _("Template of terms or contract.")
{ },
"type": "doctype", {
"name":"Mode of Payment", "type": "doctype",
"description": _("e.g. Bank, Cash, Credit Card") "name":"Mode of Payment",
}, "description": _("e.g. Bank, Cash, Credit Card")
{ },
"type": "doctype", {
"name":"C-Form", "type": "doctype",
"description": _("C-Form records"), "name":"C-Form",
"country": "India" "description": _("C-Form records"),
} "country": "India"
] }
}, ]
{ },
"label": _("Main Reports"), {
"icon": "icon-table", "label": _("Main Reports"),
"items": [ "icon": "icon-table",
{ "items": [
"type": "report", {
"name":"General Ledger", "type": "report",
"doctype": "GL Entry", "name":"General Ledger",
"is_query_report": True, "doctype": "GL Entry",
}, "is_query_report": True,
{ },
"type": "page", {
"name": "trial-balance", "type": "page",
"label": _("Trial Balance"), "name": "trial-balance",
"icon": "icon-table" "label": _("Trial Balance"),
}, "icon": "icon-table"
{ },
"type": "report", {
"name": "Accounts Receivable", "type": "report",
"doctype": "Sales Invoice", "name": "Accounts Receivable",
"is_query_report": True "doctype": "Sales Invoice",
}, "is_query_report": True
{ },
"type": "report", {
"name": "Accounts Payable", "type": "report",
"doctype": "Purchase Invoice", "name": "Accounts Payable",
"is_query_report": True "doctype": "Purchase Invoice",
}, "is_query_report": True
{ },
"type": "report", {
"name": "Sales Register", "type": "report",
"doctype": "Sales Invoice", "name": "Sales Register",
"is_query_report": True "doctype": "Sales Invoice",
}, "is_query_report": True
{ },
"type": "report", {
"name": "Purchase Register", "type": "report",
"doctype": "Purchase Invoice", "name": "Purchase Register",
"is_query_report": True "doctype": "Purchase Invoice",
}, "is_query_report": True
{ },
"type": "page", {
"name": "financial-analytics", "type": "page",
"label": _("Financial Analytics"), "name": "financial-analytics",
"icon": "icon-bar-chart", "label": _("Financial Analytics"),
}, "icon": "icon-bar-chart",
{ },
"type": "report", {
"name": "Gross Profit", "type": "report",
"doctype": "Sales Invoice", "name": "Gross Profit",
"is_query_report": True "doctype": "Sales Invoice",
}, "is_query_report": True
] },
}, ]
{ },
"label": _("Standard Reports"), {
"icon": "icon-list", "label": _("Standard Reports"),
"items": [ "icon": "icon-list",
{ "items": [
"type": "report", {
"name": "Bank Reconciliation Statement", "type": "report",
"is_query_report": True, "name": "Bank Reconciliation Statement",
"doctype": "Journal Voucher" "is_query_report": True,
}, "doctype": "Journal Voucher"
{ },
"type": "report", {
"name": "Ordered Items To Be Billed", "type": "report",
"is_query_report": True, "name": "Ordered Items To Be Billed",
"doctype": "Sales Invoice" "is_query_report": True,
}, "doctype": "Sales Invoice"
{ },
"type": "report", {
"name": "Delivered Items To Be Billed", "type": "report",
"is_query_report": True, "name": "Delivered Items To Be Billed",
"doctype": "Sales Invoice" "is_query_report": True,
}, "doctype": "Sales Invoice"
{ },
"type": "report", {
"name": "Purchase Order Items To Be Billed", "type": "report",
"is_query_report": True, "name": "Purchase Order Items To Be Billed",
"doctype": "Purchase Invoice" "is_query_report": True,
}, "doctype": "Purchase Invoice"
{ },
"type": "report", {
"name": "Received Items To Be Billed", "type": "report",
"is_query_report": True, "name": "Received Items To Be Billed",
"doctype": "Purchase Invoice" "is_query_report": True,
}, "doctype": "Purchase Invoice"
{ },
"type": "report", {
"name": "Bank Clearance Summary", "type": "report",
"is_query_report": True, "name": "Bank Clearance Summary",
"doctype": "Journal Voucher" "is_query_report": True,
}, "doctype": "Journal Voucher"
{ },
"type": "report", {
"name": "Payment Period Based On Invoice Date", "type": "report",
"is_query_report": True, "name": "Payment Period Based On Invoice Date",
"doctype": "Journal Voucher" "is_query_report": True,
}, "doctype": "Journal Voucher"
{ },
"type": "report", {
"name": "Sales Partners Commission", "type": "report",
"is_query_report": True, "name": "Sales Partners Commission",
"doctype": "Sales Invoice" "is_query_report": True,
}, "doctype": "Sales Invoice"
{ },
"type": "report", {
"name": "Customer Account Head", "type": "report",
"is_query_report": True, "name": "Customer Account Head",
"doctype": "Account" "is_query_report": True,
}, "doctype": "Account"
{ },
"type": "report", {
"name": "Supplier Account Head", "type": "report",
"is_query_report": True, "name": "Supplier Account Head",
"doctype": "Account" "is_query_report": True,
}, "doctype": "Account"
{ },
"type": "report", {
"name": "Item-wise Sales Register", "type": "report",
"is_query_report": True, "name": "Item-wise Sales Register",
"doctype": "Sales Invoice" "is_query_report": True,
}, "doctype": "Sales Invoice"
{ },
"type": "report", {
"name": "Item-wise Purchase Register", "type": "report",
"is_query_report": True, "name": "Item-wise Purchase Register",
"doctype": "Purchase Invoice" "is_query_report": True,
}, "doctype": "Purchase Invoice"
{ },
"type": "report", {
"name": "Budget Variance Report", "type": "report",
"is_query_report": True, "name": "Budget Variance Report",
"doctype": "Cost Center" "is_query_report": True,
}, "doctype": "Cost Center"
{ },
"type": "report", {
"name": "Purchase Invoice Trends", "type": "report",
"is_query_report": True, "name": "Purchase Invoice Trends",
"doctype": "Purchase Invoice" "is_query_report": True,
}, "doctype": "Purchase Invoice"
{ },
"type": "report", {
"name": "Sales Invoice Trends", "type": "report",
"is_query_report": True, "name": "Sales Invoice Trends",
"doctype": "Sales Invoice" "is_query_report": True,
}, "doctype": "Sales Invoice"
] },
}, ]
] },
]

View File

@ -1,169 +1,170 @@
from frappe import _ from frappe import _
data = [ def get_data():
{ return [
"label": _("Documents"), {
"icon": "icon-star", "label": _("Documents"),
"items": [ "icon": "icon-star",
{ "items": [
"type": "doctype", {
"name": "Supplier", "type": "doctype",
"description": _("Supplier database."), "name": "Supplier",
}, "description": _("Supplier database."),
{ },
"type": "doctype", {
"name": "Material Request", "type": "doctype",
"description": _("Request for purchase."), "name": "Material Request",
}, "description": _("Request for purchase."),
{ },
"type": "doctype", {
"name": "Supplier Quotation", "type": "doctype",
"description": _("Quotations received from Suppliers."), "name": "Supplier Quotation",
}, "description": _("Quotations received from Suppliers."),
{ },
"type": "doctype", {
"name": "Purchase Order", "type": "doctype",
"description": _("Purchase Orders given to Suppliers."), "name": "Purchase Order",
}, "description": _("Purchase Orders given to Suppliers."),
{ },
"type": "doctype", {
"name": "Contact", "type": "doctype",
"description": _("All Contacts."), "name": "Contact",
}, "description": _("All Contacts."),
{ },
"type": "doctype", {
"name": "Address", "type": "doctype",
"description": _("All Addresses."), "name": "Address",
}, "description": _("All Addresses."),
{ },
"type": "doctype", {
"name": "Item", "type": "doctype",
"description": _("All Products or Services."), "name": "Item",
}, "description": _("All Products or Services."),
] },
}, ]
{ },
"label": _("Setup"), {
"icon": "icon-cog", "label": _("Setup"),
"items": [ "icon": "icon-cog",
{ "items": [
"type": "doctype", {
"name": "Buying Settings", "type": "doctype",
"description": _("Default settings for buying transactions.") "name": "Buying Settings",
}, "description": _("Default settings for buying transactions.")
{ },
"type": "doctype", {
"name": "Supplier Type", "type": "doctype",
"description": _("Supplier Type master.") "name": "Supplier Type",
}, "description": _("Supplier Type master.")
{ },
"type": "page", {
"name": "Sales Browser", "type": "page",
"icon": "icon-sitemap", "name": "Sales Browser",
"label": _("Item Group Tree"), "icon": "icon-sitemap",
"link": "Sales Browser/Item Group", "label": _("Item Group Tree"),
"description": _("Tree of Item Groups."), "link": "Sales Browser/Item Group",
"doctype": "Item Group", "description": _("Tree of Item Groups."),
}, "doctype": "Item Group",
{ },
"type": "doctype", {
"name":"Terms and Conditions", "type": "doctype",
"label": _("Terms and Conditions Template"), "name":"Terms and Conditions",
"description": _("Template of terms or contract.") "label": _("Terms and Conditions Template"),
}, "description": _("Template of terms or contract.")
{ },
"type": "doctype", {
"name": "Purchase Taxes and Charges Master", "type": "doctype",
"description": _("Tax template for buying transactions.") "name": "Purchase Taxes and Charges Master",
}, "description": _("Tax template for buying transactions.")
{ },
"type": "doctype", {
"name": "Price List", "type": "doctype",
"description": _("Price List master.") "name": "Price List",
}, "description": _("Price List master.")
{ },
"type": "doctype", {
"name": "Item Price", "type": "doctype",
"description": _("Multiple Item prices."), "name": "Item Price",
"route": "Report/Item Price" "description": _("Multiple Item prices."),
}, "route": "Report/Item Price"
{ },
"type": "doctype", {
"name": "Pricing Rule", "type": "doctype",
"description": _("Rules for applying pricing and discount.") "name": "Pricing Rule",
}, "description": _("Rules for applying pricing and discount.")
] },
}, ]
{ },
"label": _("Main Reports"), {
"icon": "icon-table", "label": _("Main Reports"),
"items": [ "icon": "icon-table",
{ "items": [
"type": "page", {
"name": "purchase-analytics", "type": "page",
"label": _("Purchase Analytics"), "name": "purchase-analytics",
"icon": "icon-bar-chart", "label": _("Purchase Analytics"),
}, "icon": "icon-bar-chart",
] },
}, ]
{ },
"label": _("Standard Reports"), {
"icon": "icon-list", "label": _("Standard Reports"),
"items": [ "icon": "icon-list",
{ "items": [
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Items To Be Requested", "is_query_report": True,
"doctype": "Item" "name": "Items To Be Requested",
}, "doctype": "Item"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Requested Items To Be Ordered", "is_query_report": True,
"doctype": "Material Request" "name": "Requested Items To Be Ordered",
}, "doctype": "Material Request"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Material Requests for which Supplier Quotations are not created", "is_query_report": True,
"doctype": "Material Request" "name": "Material Requests for which Supplier Quotations are not created",
}, "doctype": "Material Request"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Purchase In Transit", "is_query_report": True,
"doctype": "Purchase Order" "name": "Purchase In Transit",
}, "doctype": "Purchase Order"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Item-wise Purchase History", "is_query_report": True,
"doctype": "Item" "name": "Item-wise Purchase History",
}, "doctype": "Item"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Item-wise Last Purchase Rate", "is_query_report": True,
"doctype": "Item" "name": "Item-wise Last Purchase Rate",
}, "doctype": "Item"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Purchase Order Trends", "is_query_report": True,
"doctype": "Purchase Order" "name": "Purchase Order Trends",
}, "doctype": "Purchase Order"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Supplier Addresses And Contacts", "is_query_report": True,
"doctype": "Supplier" "name": "Supplier Addresses And Contacts",
}, "doctype": "Supplier"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Supplier-Wise Sales Analytics", "is_query_report": True,
"doctype": "Stock Ledger Entry" "name": "Supplier-Wise Sales Analytics",
} "doctype": "Stock Ledger Entry"
] }
}, ]
] },
]

View File

@ -1,197 +1,198 @@
from frappe import _ from frappe import _
data = [ def get_data():
{ return [
"label": _("Documents"), {
"icon": "icon-star", "label": _("Documents"),
"items": [ "icon": "icon-star",
{ "items": [
"type": "doctype", {
"name": "Employee", "type": "doctype",
"description": _("Employee records."), "name": "Employee",
}, "description": _("Employee records."),
{ },
"type": "doctype", {
"name": "Salary Slip", "type": "doctype",
"description": _("Monthly salary statement."), "name": "Salary Slip",
}, "description": _("Monthly salary statement."),
{ },
"type": "doctype", {
"name": "Leave Application", "type": "doctype",
"description": _("Applications for leave."), "name": "Leave Application",
}, "description": _("Applications for leave."),
{ },
"type": "doctype", {
"name": "Attendance", "type": "doctype",
"description": _("Attendance record."), "name": "Attendance",
}, "description": _("Attendance record."),
{ },
"type": "doctype", {
"name": "Expense Claim", "type": "doctype",
"description": _("Claims for company expense."), "name": "Expense Claim",
}, "description": _("Claims for company expense."),
{ },
"type": "doctype", {
"name": "Appraisal", "type": "doctype",
"description": _("Performance appraisal."), "name": "Appraisal",
}, "description": _("Performance appraisal."),
{ },
"type": "doctype", {
"name": "Job Applicant", "type": "doctype",
"description": _("Applicant for a Job."), "name": "Job Applicant",
}, "description": _("Applicant for a Job."),
{ },
"type": "doctype", {
"name": "Job Opening", "type": "doctype",
"description": _("Opening for a Job."), "name": "Job Opening",
}, "description": _("Opening for a Job."),
] },
}, ]
{ },
"label": _("Tools"), {
"icon": "icon-wrench", "label": _("Tools"),
"items": [ "icon": "icon-wrench",
{ "items": [
"type": "doctype", {
"name": "Salary Manager", "type": "doctype",
"label": _("Process Payroll"), "name": "Salary Manager",
"description":_("Generate Salary Slips"), "label": _("Process Payroll"),
"hide_count": True "description":_("Generate Salary Slips"),
}, "hide_count": True
{ },
"type": "doctype", {
"name": "Upload Attendance", "type": "doctype",
"description":_("Upload attendance from a .csv file"), "name": "Upload Attendance",
"hide_count": True "description":_("Upload attendance from a .csv file"),
}, "hide_count": True
{ },
"type": "doctype", {
"name": "Leave Control Panel", "type": "doctype",
"label": _("Leave Allocation Tool"), "name": "Leave Control Panel",
"description":_("Allocate leaves for the year."), "label": _("Leave Allocation Tool"),
"hide_count": True "description":_("Allocate leaves for the year."),
}, "hide_count": True
] },
}, ]
{ },
"label": _("Setup"), {
"icon": "icon-cog", "label": _("Setup"),
"items": [ "icon": "icon-cog",
{ "items": [
"type": "doctype", {
"name": "HR Settings", "type": "doctype",
"description": _("Settings for HR Module") "name": "HR Settings",
}, "description": _("Settings for HR Module")
{ },
"type": "doctype", {
"name": "Employee", "type": "doctype",
"description": _("Employee master.") "name": "Employee",
}, "description": _("Employee master.")
{ },
"type": "doctype", {
"name": "Employment Type", "type": "doctype",
"description": _("Types of employment (permanent, contract, intern etc.).") "name": "Employment Type",
}, "description": _("Types of employment (permanent, contract, intern etc.).")
{ },
"type": "doctype", {
"name": "Branch", "type": "doctype",
"description": _("Organization branch master.") "name": "Branch",
}, "description": _("Organization branch master.")
{ },
"type": "doctype", {
"name": "Department", "type": "doctype",
"description": _("Organization unit (department) master.") "name": "Department",
}, "description": _("Organization unit (department) master.")
{ },
"type": "doctype", {
"name": "Designation", "type": "doctype",
"description": _("Employee designation (e.g. CEO, Director etc.).") "name": "Designation",
}, "description": _("Employee designation (e.g. CEO, Director etc.).")
{ },
"type": "doctype", {
"name": "Salary Structure", "type": "doctype",
"description": _("Salary template master.") "name": "Salary Structure",
}, "description": _("Salary template master.")
{ },
"type": "doctype", {
"name": "Earning Type", "type": "doctype",
"description": _("Salary components.") "name": "Earning Type",
}, "description": _("Salary components.")
{ },
"type": "doctype", {
"name": "Deduction Type", "type": "doctype",
"description": _("Tax and other salary deductions.") "name": "Deduction Type",
}, "description": _("Tax and other salary deductions.")
{ },
"type": "doctype", {
"name": "Leave Allocation", "type": "doctype",
"description": _("Allocate leaves for a period.") "name": "Leave Allocation",
}, "description": _("Allocate leaves for a period.")
{ },
"type": "doctype", {
"name":"Leave Type", "type": "doctype",
"description": _("Type of leaves like casual, sick etc."), "name":"Leave Type",
}, "description": _("Type of leaves like casual, sick etc."),
{ },
"type": "doctype", {
"name": "Holiday List", "type": "doctype",
"description": _("Holiday master.") "name": "Holiday List",
}, "description": _("Holiday master.")
{ },
"type": "doctype", {
"name": "Leave Block List", "type": "doctype",
"description": _("Block leave applications by department.") "name": "Leave Block List",
}, "description": _("Block leave applications by department.")
{ },
"type": "doctype", {
"name": "Appraisal Template", "type": "doctype",
"description": _("Template for performance appraisals.") "name": "Appraisal Template",
}, "description": _("Template for performance appraisals.")
{ },
"type": "doctype", {
"name": "Expense Claim Type", "type": "doctype",
"description": _("Types of Expense Claim.") "name": "Expense Claim Type",
}, "description": _("Types of Expense Claim.")
{ },
"type": "doctype", {
"name": "Jobs Email Settings", "type": "doctype",
"description": _("Setup incoming server for jobs email id. (e.g. jobs@example.com)") "name": "Jobs Email Settings",
}, "description": _("Setup incoming server for jobs email id. (e.g. jobs@example.com)")
] },
}, ]
{ },
"label": _("Standard Reports"), {
"icon": "icon-list", "label": _("Standard Reports"),
"items": [ "icon": "icon-list",
{ "items": [
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Employee Leave Balance", "is_query_report": True,
"doctype": "Leave Application" "name": "Employee Leave Balance",
}, "doctype": "Leave Application"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Employee Birthday", "is_query_report": True,
"doctype": "Employee" "name": "Employee Birthday",
}, "doctype": "Employee"
{ },
"type": "report", {
"name": "Employee Information", "type": "report",
"doctype": "Employee" "name": "Employee Information",
}, "doctype": "Employee"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Monthly Salary Register", "is_query_report": True,
"doctype": "Salary Slip" "name": "Monthly Salary Register",
}, "doctype": "Salary Slip"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Monthly Attendance Sheet", "is_query_report": True,
"doctype": "Attendance" "name": "Monthly Attendance Sheet",
}, "doctype": "Attendance"
] },
}, ]
] },
]

View File

@ -1,78 +1,79 @@
from frappe import _ from frappe import _
data = [ def get_data():
{ return [
"label": _("Documents"), {
"icon": "icon-star", "label": _("Documents"),
"items": [ "icon": "icon-star",
{ "items": [
"type": "doctype", {
"name": "BOM", "type": "doctype",
"description": _("Bill of Materials (BOM)"), "name": "BOM",
"label": _("Bill of Material") "description": _("Bill of Materials (BOM)"),
}, "label": _("Bill of Material")
{ },
"type": "doctype", {
"name": "Production Order", "type": "doctype",
"description": _("Orders released for production."), "name": "Production Order",
}, "description": _("Orders released for production."),
{ },
"type": "doctype", {
"name": "Item", "type": "doctype",
"description": _("All Products or Services."), "name": "Item",
}, "description": _("All Products or Services."),
{ },
"type": "doctype", {
"name": "Workstation", "type": "doctype",
"description": _("Where manufacturing operations are carried out."), "name": "Workstation",
}, "description": _("Where manufacturing operations are carried out."),
},
] ]
}, },
{ {
"label": _("Tools"), "label": _("Tools"),
"icon": "icon-wrench", "icon": "icon-wrench",
"items": [ "items": [
{ {
"type": "doctype", "type": "doctype",
"name": "Production Planning Tool", "name": "Production Planning Tool",
"description": _("Generate Material Requests (MRP) and Production Orders."), "description": _("Generate Material Requests (MRP) and Production Orders."),
}, },
{ {
"type": "doctype", "type": "doctype",
"name": "BOM Replace Tool", "name": "BOM Replace Tool",
"description": _("Replace Item / BOM in all BOMs"), "description": _("Replace Item / BOM in all BOMs"),
}, },
] ]
}, },
{ {
"label": _("Standard Reports"), "label": _("Standard Reports"),
"icon": "icon-list", "icon": "icon-list",
"items": [ "items": [
{ {
"type": "report", "type": "report",
"is_query_report": True, "is_query_report": True,
"name": "Open Production Orders", "name": "Open Production Orders",
"doctype": "Production Order" "doctype": "Production Order"
}, },
{ {
"type": "report", "type": "report",
"is_query_report": True, "is_query_report": True,
"name": "Production Orders in Progress", "name": "Production Orders in Progress",
"doctype": "Production Order" "doctype": "Production Order"
}, },
{ {
"type": "report", "type": "report",
"is_query_report": True, "is_query_report": True,
"name": "Issued Items Against Production Order", "name": "Issued Items Against Production Order",
"doctype": "Production Order" "doctype": "Production Order"
}, },
{ {
"type": "report", "type": "report",
"is_query_report": True, "is_query_report": True,
"name": "Completed Production Orders", "name": "Completed Production Orders",
"doctype": "Production Order" "doctype": "Production Order"
}, },
] ]
}, },
] ]

View File

@ -1,66 +1,67 @@
from frappe import _ from frappe import _
data = [ def get_data():
{ return [
"label": _("Documents"), {
"icon": "icon-star", "label": _("Documents"),
"items": [ "icon": "icon-star",
{ "items": [
"type": "doctype", {
"name": "Task", "type": "doctype",
"description": _("Project activity / task."), "name": "Task",
}, "description": _("Project activity / task."),
{ },
"type": "doctype", {
"name": "Project", "type": "doctype",
"description": _("Project master."), "name": "Project",
}, "description": _("Project master."),
{ },
"type": "doctype", {
"name": "Time Log", "type": "doctype",
"description": _("Time Log for tasks."), "name": "Time Log",
}, "description": _("Time Log for tasks."),
{ },
"type": "doctype", {
"name": "Time Log Batch", "type": "doctype",
"description": _("Batch Time Logs for billing."), "name": "Time Log Batch",
}, "description": _("Batch Time Logs for billing."),
{ },
"type": "doctype", {
"name": "Activity Type", "type": "doctype",
"description": _("Types of activities for Time Sheets"), "name": "Activity Type",
}, "description": _("Types of activities for Time Sheets"),
] },
}, ]
{ },
"label": _("Tools"), {
"icon": "icon-wrench", "label": _("Tools"),
"items": [ "icon": "icon-wrench",
{ "items": [
"type": "report", {
"route": "Gantt/Task", "type": "report",
"doctype": "Task", "route": "Gantt/Task",
"name": "Gantt Chart", "doctype": "Task",
"description": _("Gantt chart of all tasks.") "name": "Gantt Chart",
}, "description": _("Gantt chart of all tasks.")
] },
}, ]
{ },
"label": _("Standard Reports"), {
"icon": "icon-list", "label": _("Standard Reports"),
"items": [ "icon": "icon-list",
{ "items": [
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Daily Time Log Summary", "is_query_report": True,
"doctype": "Time Log" "name": "Daily Time Log Summary",
}, "doctype": "Time Log"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Project wise Stock Tracking", "is_query_report": True,
"doctype": "Project" "name": "Project wise Stock Tracking",
}, "doctype": "Project"
] },
}, ]
] },
]

View File

@ -1,265 +1,266 @@
from frappe import _ from frappe import _
data = [ def get_data():
{ return [
"label": _("Documents"), {
"icon": "icon-star", "label": _("Documents"),
"items": [ "icon": "icon-star",
{ "items": [
"type": "doctype", {
"name": "Lead", "type": "doctype",
"description": _("Database of potential customers."), "name": "Lead",
}, "description": _("Database of potential customers."),
{ },
"type": "doctype", {
"name": "Customer", "type": "doctype",
"description": _("Customer database."), "name": "Customer",
}, "description": _("Customer database."),
{ },
"type": "doctype", {
"name": "Opportunity", "type": "doctype",
"description": _("Potential opportunities for selling."), "name": "Opportunity",
}, "description": _("Potential opportunities for selling."),
{ },
"type": "doctype", {
"name": "Quotation", "type": "doctype",
"description": _("Quotes to Leads or Customers."), "name": "Quotation",
}, "description": _("Quotes to Leads or Customers."),
{ },
"type": "doctype", {
"name": "Sales Order", "type": "doctype",
"description": _("Confirmed orders from Customers."), "name": "Sales Order",
}, "description": _("Confirmed orders from Customers."),
{ },
"type": "doctype", {
"name": "Contact", "type": "doctype",
"description": _("All Contacts."), "name": "Contact",
}, "description": _("All Contacts."),
{ },
"type": "doctype", {
"name": "Address", "type": "doctype",
"description": _("All Addresses."), "name": "Address",
}, "description": _("All Addresses."),
{ },
"type": "doctype", {
"name": "Item", "type": "doctype",
"description": _("All Products or Services."), "name": "Item",
}, "description": _("All Products or Services."),
] },
}, ]
{ },
"label": _("Tools"), {
"icon": "icon-wrench", "label": _("Tools"),
"items": [ "icon": "icon-wrench",
{ "items": [
"type": "doctype", {
"name": "SMS Center", "type": "doctype",
"description":_("Send mass SMS to your contacts"), "name": "SMS Center",
}, "description":_("Send mass SMS to your contacts"),
] },
}, ]
{ },
"label": _("Setup"), {
"icon": "icon-cog", "label": _("Setup"),
"items": [ "icon": "icon-cog",
{ "items": [
"type": "doctype", {
"name": "Selling Settings", "type": "doctype",
"description": _("Default settings for selling transactions.") "name": "Selling Settings",
}, "description": _("Default settings for selling transactions.")
{ },
"type": "doctype", {
"name": "Campaign", "type": "doctype",
"description": _("Sales campaigns."), "name": "Campaign",
}, "description": _("Sales campaigns."),
{ },
"type": "page", {
"label": _("Customer Group"), "type": "page",
"name": "Sales Browser", "label": _("Customer Group"),
"icon": "icon-sitemap", "name": "Sales Browser",
"link": "Sales Browser/Customer Group", "icon": "icon-sitemap",
"description": _("Manage Customer Group Tree."), "link": "Sales Browser/Customer Group",
"doctype": "Customer Group", "description": _("Manage Customer Group Tree."),
}, "doctype": "Customer Group",
{ },
"type": "page", {
"label": _("Territory"), "type": "page",
"name": "Sales Browser", "label": _("Territory"),
"icon": "icon-sitemap", "name": "Sales Browser",
"link": "Sales Browser/Territory", "icon": "icon-sitemap",
"description": _("Manage Territory Tree."), "link": "Sales Browser/Territory",
"doctype": "Territory", "description": _("Manage Territory Tree."),
}, "doctype": "Territory",
{ },
"type": "page", {
"label": _("Sales Person"), "type": "page",
"name": "Sales Browser", "label": _("Sales Person"),
"icon": "icon-sitemap", "name": "Sales Browser",
"link": "Sales Browser/Sales Person", "icon": "icon-sitemap",
"description": _("Manage Sales Person Tree."), "link": "Sales Browser/Sales Person",
"doctype": "Sales Person", "description": _("Manage Sales Person Tree."),
}, "doctype": "Sales Person",
{ },
"type": "page", {
"name": "Sales Browser", "type": "page",
"icon": "icon-sitemap", "name": "Sales Browser",
"label": _("Item Group Tree"), "icon": "icon-sitemap",
"link": "Sales Browser/Item Group", "label": _("Item Group Tree"),
"description": _("Tree of Item Groups."), "link": "Sales Browser/Item Group",
"doctype": "Item Group", "description": _("Tree of Item Groups."),
}, "doctype": "Item Group",
{ },
"type": "doctype", {
"name":"Terms and Conditions", "type": "doctype",
"label": _("Terms and Conditions Template"), "name":"Terms and Conditions",
"description": _("Template of terms or contract.") "label": _("Terms and Conditions Template"),
}, "description": _("Template of terms or contract.")
{ },
"type": "doctype", {
"name": "Sales Taxes and Charges Master", "type": "doctype",
"description": _("Tax template for selling transactions.") "name": "Sales Taxes and Charges Master",
}, "description": _("Tax template for selling transactions.")
{ },
"type": "doctype", {
"name": "Shipping Rule", "type": "doctype",
"description": _("Rules for adding shipping costs.") "name": "Shipping Rule",
}, "description": _("Rules for adding shipping costs.")
{ },
"type": "doctype", {
"name": "Price List", "type": "doctype",
"description": _("Price List master.") "name": "Price List",
}, "description": _("Price List master.")
{ },
"type": "doctype", {
"name": "Item Price", "type": "doctype",
"description": _("Multiple Item prices."), "name": "Item Price",
"route": "Report/Item Price" "description": _("Multiple Item prices."),
}, "route": "Report/Item Price"
{ },
"type": "doctype", {
"name": "Pricing Rule", "type": "doctype",
"description": _("Rules for applying pricing and discount.") "name": "Pricing Rule",
}, "description": _("Rules for applying pricing and discount.")
{ },
"type": "doctype", {
"name": "Sales BOM", "type": "doctype",
"description": _("Bundle items at time of sale."), "name": "Sales BOM",
}, "description": _("Bundle items at time of sale."),
{ },
"type": "doctype", {
"name": "Sales Email Settings", "type": "doctype",
"description": _("Setup incoming server for sales email id. (e.g. sales@example.com)") "name": "Sales Email Settings",
}, "description": _("Setup incoming server for sales email id. (e.g. sales@example.com)")
{ },
"type": "doctype", {
"name": "Industry Type", "type": "doctype",
"description": _("Track Leads by Industry Type.") "name": "Industry Type",
}, "description": _("Track Leads by Industry Type.")
] },
}, ]
{ },
"label": _("Main Reports"), {
"icon": "icon-table", "label": _("Main Reports"),
"items": [ "icon": "icon-table",
{ "items": [
"type": "page", {
"name": "sales-analytics", "type": "page",
"label": _("Sales Analytics"), "name": "sales-analytics",
"icon": "icon-bar-chart", "label": _("Sales Analytics"),
}, "icon": "icon-bar-chart",
{ },
"type": "page", {
"name": "sales-funnel", "type": "page",
"label": _("Sales Funnel"), "name": "sales-funnel",
"icon": "icon-bar-chart", "label": _("Sales Funnel"),
}, "icon": "icon-bar-chart",
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Customer Acquisition and Loyalty", "is_query_report": True,
"doctype": "Customer", "name": "Customer Acquisition and Loyalty",
"icon": "icon-bar-chart", "doctype": "Customer",
}, "icon": "icon-bar-chart",
] },
}, ]
{ },
"label": _("Standard Reports"), {
"icon": "icon-list", "label": _("Standard Reports"),
"items": [ "icon": "icon-list",
{ "items": [
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Lead Details", "is_query_report": True,
"doctype": "Lead" "name": "Lead Details",
}, "doctype": "Lead"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Customer Addresses And Contacts", "is_query_report": True,
"doctype": "Contact" "name": "Customer Addresses And Contacts",
}, "doctype": "Contact"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Ordered Items To Be Delivered", "is_query_report": True,
"doctype": "Sales Order" "name": "Ordered Items To Be Delivered",
}, "doctype": "Sales Order"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Sales Person-wise Transaction Summary", "is_query_report": True,
"doctype": "Sales Order" "name": "Sales Person-wise Transaction Summary",
}, "doctype": "Sales Order"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Item-wise Sales History", "is_query_report": True,
"doctype": "Item" "name": "Item-wise Sales History",
}, "doctype": "Item"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Territory Target Variance (Item Group-Wise)", "is_query_report": True,
"route": "query-report/Territory Target Variance Item Group-Wise", "name": "Territory Target Variance (Item Group-Wise)",
"doctype": "Territory" "route": "query-report/Territory Target Variance Item Group-Wise",
}, "doctype": "Territory"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Sales Person Target Variance (Item Group-Wise)", "is_query_report": True,
"route": "query-report/Sales Person Target Variance Item Group-Wise", "name": "Sales Person Target Variance (Item Group-Wise)",
"doctype": "Sales Person", "route": "query-report/Sales Person Target Variance Item Group-Wise",
}, "doctype": "Sales Person",
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Customers Not Buying Since Long Time", "is_query_report": True,
"doctype": "Sales Order" "name": "Customers Not Buying Since Long Time",
}, "doctype": "Sales Order"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Quotation Trend", "is_query_report": True,
"doctype": "Quotation" "name": "Quotation Trend",
}, "doctype": "Quotation"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Sales Order Trends", "is_query_report": True,
"doctype": "Sales Order" "name": "Sales Order Trends",
}, "doctype": "Sales Order"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Available Stock for Packing Items", "is_query_report": True,
"doctype": "Item", "name": "Available Stock for Packing Items",
}, "doctype": "Item",
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Pending SO Items For Purchase Request", "is_query_report": True,
"doctype": "Sales Order" "name": "Pending SO Items For Purchase Request",
}, "doctype": "Sales Order"
] },
}, ]
] },
]

View File

@ -1,129 +1,127 @@
from frappe import _ from frappe import _
from frappe.widgets.moduleview import add_setup_section from frappe.widgets.moduleview import add_setup_section
data = [
{
"label": _("Settings"),
"icon": "icon-wrench",
"items": [
{
"type": "doctype",
"name": "Global Defaults",
"label": _("Global Settings"),
"description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
"hide_count": True
}
]
},
{
"label": _("Printing and Branding"),
"icon": "icon-print",
"items": [
{
"type": "doctype",
"name": "Letter Head",
"description": _("Letter Heads for print templates.")
},
{
"type": "doctype",
"name": "Print Heading",
"description": _("Titles for print templates e.g. Proforma Invoice.")
},
{
"type": "doctype",
"name": "Terms and Conditions",
"description": _("Standard contract terms for Sales or Purchase.")
},
]
},
{
"label": _("Customize"),
"icon": "icon-glass",
"items": [
{
"type": "doctype",
"name": "Features Setup",
"description": _("Show / Hide features like Serial Nos, POS etc.")
},
{
"type": "doctype",
"name": "Authorization Rule",
"description": _("Create rules to restrict transactions based on values.")
},
{
"type": "doctype",
"name": "Notification Control",
"label": _("Email Notifications"),
"description": _("Automatically compose message on submission of transactions.")
}
]
},
{
"label": _("Email"),
"icon": "icon-envelope",
"items": [
{
"type": "doctype",
"name": "Email Digest",
"description": _("Create and manage daily, weekly and monthly email digests.")
},
{
"type": "doctype",
"name": "Support Email Settings",
"description": _("Setup incoming server for support email id. (e.g. support@example.com)")
},
{
"type": "doctype",
"name": "Sales Email Settings",
"description": _("Setup incoming server for sales email id. (e.g. sales@example.com)")
},
{
"type": "doctype",
"name": "Jobs Email Settings",
"description": _("Setup incoming server for jobs email id. (e.g. jobs@example.com)")
},
]
},
{
"label": _("Masters"),
"icon": "icon-star",
"items": [
{
"type": "doctype",
"name": "Company",
"description": _("Company (not Customer or Supplier) master.")
},
{
"type": "doctype",
"name": "Item",
"description": _("Item master.")
},
{
"type": "doctype",
"name": "Customer",
"description": _("Customer master.")
},
{
"type": "doctype",
"name": "Supplier",
"description": _("Supplier master.")
},
{
"type": "doctype",
"name": "Contact",
"description": _("Contact master.")
},
{
"type": "doctype",
"name": "Address",
"description": _("Address master.")
},
]
},
]
def get_data(): def get_data():
out = list(data) data = [
{
"label": _("Settings"),
"icon": "icon-wrench",
"items": [
{
"type": "doctype",
"name": "Global Defaults",
"label": _("Global Settings"),
"description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
"hide_count": True
}
]
},
{
"label": _("Printing and Branding"),
"icon": "icon-print",
"items": [
{
"type": "doctype",
"name": "Letter Head",
"description": _("Letter Heads for print templates.")
},
{
"type": "doctype",
"name": "Print Heading",
"description": _("Titles for print templates e.g. Proforma Invoice.")
},
{
"type": "doctype",
"name": "Terms and Conditions",
"description": _("Standard contract terms for Sales or Purchase.")
},
]
},
{
"label": _("Customize"),
"icon": "icon-glass",
"items": [
{
"type": "doctype",
"name": "Features Setup",
"description": _("Show / Hide features like Serial Nos, POS etc.")
},
{
"type": "doctype",
"name": "Authorization Rule",
"description": _("Create rules to restrict transactions based on values.")
},
{
"type": "doctype",
"name": "Notification Control",
"label": _("Email Notifications"),
"description": _("Automatically compose message on submission of transactions.")
}
]
},
{
"label": _("Email"),
"icon": "icon-envelope",
"items": [
{
"type": "doctype",
"name": "Email Digest",
"description": _("Create and manage daily, weekly and monthly email digests.")
},
{
"type": "doctype",
"name": "Support Email Settings",
"description": _("Setup incoming server for support email id. (e.g. support@example.com)")
},
{
"type": "doctype",
"name": "Sales Email Settings",
"description": _("Setup incoming server for sales email id. (e.g. sales@example.com)")
},
{
"type": "doctype",
"name": "Jobs Email Settings",
"description": _("Setup incoming server for jobs email id. (e.g. jobs@example.com)")
},
]
},
{
"label": _("Masters"),
"icon": "icon-star",
"items": [
{
"type": "doctype",
"name": "Company",
"description": _("Company (not Customer or Supplier) master.")
},
{
"type": "doctype",
"name": "Item",
"description": _("Item master.")
},
{
"type": "doctype",
"name": "Customer",
"description": _("Customer master.")
},
{
"type": "doctype",
"name": "Supplier",
"description": _("Supplier master.")
},
{
"type": "doctype",
"name": "Contact",
"description": _("Contact master.")
},
{
"type": "doctype",
"name": "Address",
"description": _("Address master.")
},
]
},
]
for module, label, icon in ( for module, label, icon in (
("accounts", _("Accounts"), "icon-money"), ("accounts", _("Accounts"), "icon-money"),
@ -133,6 +131,6 @@ def get_data():
("hr", _("Human Resources"), "icon-group"), ("hr", _("Human Resources"), "icon-group"),
("support", _("Support"), "icon-phone")): ("support", _("Support"), "icon-phone")):
add_setup_section(out, "erpnext", module, label, icon) add_setup_section(data, "erpnext", module, label, icon)
return out return data

View File

@ -1,263 +1,264 @@
from frappe import _ from frappe import _
data = [ def get_data():
{ return [
"label": _("Documents"), {
"icon": "icon-star", "label": _("Documents"),
"items": [ "icon": "icon-star",
{ "items": [
"type": "doctype", {
"name": "Material Request", "type": "doctype",
"description": _("Requests for items."), "name": "Material Request",
}, "description": _("Requests for items."),
{ },
"type": "doctype", {
"name": "Stock Entry", "type": "doctype",
"description": _("Record item movement."), "name": "Stock Entry",
}, "description": _("Record item movement."),
{ },
"type": "doctype", {
"name": "Delivery Note", "type": "doctype",
"description": _("Shipments to customers."), "name": "Delivery Note",
}, "description": _("Shipments to customers."),
{ },
"type": "doctype", {
"name": "Purchase Receipt", "type": "doctype",
"description": _("Goods received from Suppliers."), "name": "Purchase Receipt",
}, "description": _("Goods received from Suppliers."),
{ },
"type": "doctype", {
"name": "Item", "type": "doctype",
"description": _("All Products or Services."), "name": "Item",
}, "description": _("All Products or Services."),
{ },
"type": "doctype", {
"name": "Warehouse", "type": "doctype",
"description": _("Where items are stored."), "name": "Warehouse",
}, "description": _("Where items are stored."),
{ },
"type": "doctype", {
"name": "Serial No", "type": "doctype",
"description": _("Single unit of an Item."), "name": "Serial No",
}, "description": _("Single unit of an Item."),
{ },
"type": "doctype", {
"name": "Batch", "type": "doctype",
"description": _("Batch (lot) of an Item."), "name": "Batch",
}, "description": _("Batch (lot) of an Item."),
] },
}, ]
{ },
"label": _("Tools"), {
"icon": "icon-wrench", "label": _("Tools"),
"items": [ "icon": "icon-wrench",
{ "items": [
"type": "doctype", {
"name": "Stock Reconciliation", "type": "doctype",
"description": _("Upload stock balance via csv.") "name": "Stock Reconciliation",
}, "description": _("Upload stock balance via csv.")
{ },
"type": "doctype", {
"name": "Installation Note", "type": "doctype",
"description": _("Installation record for a Serial No.") "name": "Installation Note",
}, "description": _("Installation record for a Serial No.")
{ },
"type": "doctype", {
"name": "Packing Slip", "type": "doctype",
"description": _("Split Delivery Note into packages.") "name": "Packing Slip",
}, "description": _("Split Delivery Note into packages.")
{ },
"type": "doctype", {
"name": "Quality Inspection", "type": "doctype",
"description": _("Incoming quality inspection.") "name": "Quality Inspection",
}, "description": _("Incoming quality inspection.")
{ },
"type": "doctype", {
"name": "Landed Cost Wizard", "type": "doctype",
"description": _("Distribute transport overhead across items."), "name": "Landed Cost Wizard",
}, "description": _("Distribute transport overhead across items."),
{ },
"type": "doctype", {
"name": "Stock UOM Replace Utility", "type": "doctype",
"description": _("Change UOM for an Item."), "name": "Stock UOM Replace Utility",
}, "description": _("Change UOM for an Item."),
] },
}, ]
{ },
"label": _("Setup"), {
"icon": "icon-cog", "label": _("Setup"),
"items": [ "icon": "icon-cog",
{ "items": [
"type": "doctype", {
"name": "Stock Settings", "type": "doctype",
"description": _("Default settings for stock transactions.") "name": "Stock Settings",
}, "description": _("Default settings for stock transactions.")
{ },
"type": "page", {
"name": "Sales Browser", "type": "page",
"icon": "icon-sitemap", "name": "Sales Browser",
"label": _("Item Group Tree"), "icon": "icon-sitemap",
"link": "Sales Browser/Item Group", "label": _("Item Group Tree"),
"description": _("Tree of Item Groups."), "link": "Sales Browser/Item Group",
"doctype": "Item Group", "description": _("Tree of Item Groups."),
}, "doctype": "Item Group",
{ },
"type": "doctype", {
"name": "UOM", "type": "doctype",
"label": _("Unit of Measure") + " (UOM)", "name": "UOM",
"description": _("e.g. Kg, Unit, Nos, m") "label": _("Unit of Measure") + " (UOM)",
}, "description": _("e.g. Kg, Unit, Nos, m")
{ },
"type": "doctype", {
"name": "Warehouse", "type": "doctype",
"description": _("Warehouses.") "name": "Warehouse",
}, "description": _("Warehouses.")
{ },
"type": "doctype", {
"name": "Brand", "type": "doctype",
"description": _("Brand master.") "name": "Brand",
}, "description": _("Brand master.")
{ },
"type": "doctype", {
"name": "Price List", "type": "doctype",
"description": _("Price List master.") "name": "Price List",
}, "description": _("Price List master.")
{ },
"type": "doctype", {
"name": "Item Price", "type": "doctype",
"description": _("Multiple Item prices."), "name": "Item Price",
"route": "Report/Item Price" "description": _("Multiple Item prices."),
}, "route": "Report/Item Price"
] },
}, ]
{ },
"label": _("Main Reports"), {
"icon": "icon-table", "label": _("Main Reports"),
"items": [ "icon": "icon-table",
{ "items": [
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Stock Ledger", "is_query_report": True,
"doctype": "Item", "name": "Stock Ledger",
}, "doctype": "Item",
{ },
"type": "page", {
"name": "stock-balance", "type": "page",
"label": _("Stock Balance"), "name": "stock-balance",
"icon": "icon-table", "label": _("Stock Balance"),
}, "icon": "icon-table",
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Stock Projected Qty", "is_query_report": True,
"doctype": "Item", "name": "Stock Projected Qty",
}, "doctype": "Item",
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Stock Ageing", "is_query_report": True,
"doctype": "Item", "name": "Stock Ageing",
}, "doctype": "Item",
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Item-wise Price List Rate", "is_query_report": True,
"doctype": "Item Price", "name": "Item-wise Price List Rate",
}, "doctype": "Item Price",
{ },
"type": "page", {
"name": "stock-analytics", "type": "page",
"label": _("Stock Analytics"), "name": "stock-analytics",
"icon": "icon-bar-chart" "label": _("Stock Analytics"),
}, "icon": "icon-bar-chart"
] },
}, ]
{ },
"label": _("Standard Reports"), {
"icon": "icon-list", "label": _("Standard Reports"),
"items": [ "icon": "icon-list",
{ "items": [
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Ordered Items To Be Delivered", "is_query_report": True,
"doctype": "Delivery Note" "name": "Ordered Items To Be Delivered",
}, "doctype": "Delivery Note"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Purchase Order Items To Be Received", "is_query_report": True,
"doctype": "Purchase Receipt" "name": "Purchase Order Items To Be Received",
}, "doctype": "Purchase Receipt"
{ },
"type": "report", {
"name": "Item Shortage Report", "type": "report",
"route": "Report/Bin/Item Shortage Report", "name": "Item Shortage Report",
"doctype": "Purchase Receipt" "route": "Report/Bin/Item Shortage Report",
}, "doctype": "Purchase Receipt"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Serial No Service Contract Expiry", "is_query_report": True,
"doctype": "Serial No" "name": "Serial No Service Contract Expiry",
}, "doctype": "Serial No"
{ },
"type": "report", {
"name": "Serial No Status", "type": "report",
"doctype": "Serial No" "name": "Serial No Status",
}, "doctype": "Serial No"
{ },
"type": "report", {
"name": "Serial No Warranty Expiry", "type": "report",
"doctype": "Serial No" "name": "Serial No Warranty Expiry",
}, "doctype": "Serial No"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Purchase In Transit", "is_query_report": True,
"doctype": "Purchase Order" "name": "Purchase In Transit",
}, "doctype": "Purchase Order"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Requested Items To Be Transferred", "is_query_report": True,
"doctype": "Material Request" "name": "Requested Items To Be Transferred",
}, "doctype": "Material Request"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Batch-Wise Balance History", "is_query_report": True,
"doctype": "Batch" "name": "Batch-Wise Balance History",
}, "doctype": "Batch"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Warehouse-Wise Stock Balance", "is_query_report": True,
"doctype": "Warehouse" "name": "Warehouse-Wise Stock Balance",
}, "doctype": "Warehouse"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Item Prices", "is_query_report": True,
"doctype": "Price List" "name": "Item Prices",
}, "doctype": "Price List"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Itemwise Recommended Reorder Level", "is_query_report": True,
"doctype": "Item" "name": "Itemwise Recommended Reorder Level",
}, "doctype": "Item"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Delivery Note Trends", "is_query_report": True,
"doctype": "Delivery Note" "name": "Delivery Note Trends",
}, "doctype": "Delivery Note"
{ },
"type": "report", {
"is_query_report": True, "type": "report",
"name": "Purchase Receipt Trends", "is_query_report": True,
"doctype": "Purchase Receipt" "name": "Purchase Receipt Trends",
}, "doctype": "Purchase Receipt"
] },
}, ]
] },
]

View File

@ -1,74 +1,75 @@
from frappe import _ from frappe import _
data = [ def get_data():
{ return [
"label": _("Documents"), {
"icon": "icon-star", "label": _("Documents"),
"items": [ "icon": "icon-star",
{ "items": [
"type": "doctype", {
"name": "Support Ticket", "type": "doctype",
"description": _("Support queries from customers."), "name": "Support Ticket",
}, "description": _("Support queries from customers."),
{ },
"type": "doctype", {
"name": "Customer Issue", "type": "doctype",
"description": _("Customer Issue against Serial No."), "name": "Customer Issue",
}, "description": _("Customer Issue against Serial No."),
{ },
"type": "doctype", {
"name": "Maintenance Schedule", "type": "doctype",
"description": _("Plan for maintenance visits."), "name": "Maintenance Schedule",
}, "description": _("Plan for maintenance visits."),
{ },
"type": "doctype", {
"name": "Maintenance Visit", "type": "doctype",
"description": _("Visit report for maintenance call."), "name": "Maintenance Visit",
}, "description": _("Visit report for maintenance call."),
{ },
"type": "doctype", {
"name": "Newsletter", "type": "doctype",
"description": _("Newsletters to contacts, leads."), "name": "Newsletter",
}, "description": _("Newsletters to contacts, leads."),
{ },
"type": "doctype", {
"name": "Communication", "type": "doctype",
"description": _("Communication log."), "name": "Communication",
}, "description": _("Communication log."),
{ },
"type": "doctype", {
"name": "Serial No", "type": "doctype",
"description": _("Single unit of an Item."), "name": "Serial No",
}, "description": _("Single unit of an Item."),
] },
}, ]
{ },
"label": _("Setup"), {
"icon": "icon-cog", "label": _("Setup"),
"items": [ "icon": "icon-cog",
{ "items": [
"type": "doctype", {
"name": "Support Email Settings", "type": "doctype",
"description": _("Setup incoming server for support email id. (e.g. support@example.com)") "name": "Support Email Settings",
}, "description": _("Setup incoming server for support email id. (e.g. support@example.com)")
] },
}, ]
{ },
"label": _("Standard Reports"), {
"icon": "icon-list", "label": _("Standard Reports"),
"items": [ "icon": "icon-list",
{ "items": [
"type": "page", {
"name": "support-analytics", "type": "page",
"label": _("Support Analytics"), "name": "support-analytics",
"icon": "icon-bar-chart" "label": _("Support Analytics"),
}, "icon": "icon-bar-chart"
{ },
"type": "report", {
"name": "Maintenance Schedules", "type": "report",
"is_query_report": True, "name": "Maintenance Schedules",
"doctype": "Maintenance Schedule" "is_query_report": True,
}, "doctype": "Maintenance Schedule"
] },
}, ]
] },
]