added links to open count in module + other minor fixes

This commit is contained in:
Rushabh Mehta 2013-01-10 12:25:25 +05:30
parent 249b0b4942
commit 846678a1e4
6 changed files with 91 additions and 115 deletions

View File

@ -2,25 +2,19 @@
{ {
"owner": "Administrator", "owner": "Administrator",
"docstatus": 0, "docstatus": 0,
"creation": "2012-03-27 14:35:40", "creation": "2012-07-03 13:30:49",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-03-27 14:35:40" "modified": "2013-01-10 12:15:49"
}, },
{ {
"section_style": "Simple",
"allow_print": 1, "allow_print": 1,
"module": "Accounts", "module": "Accounts",
"doctype": "DocType",
"server_code_error": " ",
"read_only": 1, "read_only": 1,
"allow_email": 1, "allow_email": 1,
"hide_heading": 1, "hide_heading": 1,
"issingle": 1, "issingle": 1,
"name": "__common__", "name": "__common__",
"colour": "White:FFF", "doctype": "DocType",
"_last_update": "1294312169",
"show_in_menu": 0,
"version": 12,
"hide_toolbar": 1, "hide_toolbar": 1,
"allow_copy": 1 "allow_copy": 1
}, },
@ -32,10 +26,13 @@
"parentfield": "fields" "parentfield": "fields"
}, },
{ {
"amend": 0,
"name": "__common__", "name": "__common__",
"parent": "Bank Reconciliation", "parent": "Bank Reconciliation",
"read": 1, "read": 1,
"submit": 0,
"doctype": "DocPerm", "doctype": "DocPerm",
"cancel": 0,
"parenttype": "DocType", "parenttype": "DocType",
"parentfield": "permissions" "parentfield": "permissions"
}, },
@ -43,44 +40,15 @@
"name": "Bank Reconciliation", "name": "Bank Reconciliation",
"doctype": "DocType" "doctype": "DocType"
}, },
{
"amend": 0,
"create": 1,
"doctype": "DocPerm",
"submit": 0,
"write": 1,
"role": "Accounts User",
"cancel": 0,
"permlevel": 0
},
{
"role": "All",
"permlevel": 1,
"doctype": "DocPerm"
},
{
"create": 1,
"doctype": "DocPerm",
"write": 1,
"role": "Accounts Manager",
"permlevel": 0
},
{
"doctype": "DocField",
"label": "Head HTML",
"fieldname": "head_html",
"fieldtype": "HTML",
"permlevel": 0
},
{ {
"description": "Select account head of the bank where cheque was deposited.", "description": "Select account head of the bank where cheque was deposited.",
"doctype": "DocField", "doctype": "DocField",
"label": "Bank Account", "label": "Bank Account",
"permlevel": 0, "options": "Account",
"fieldname": "bank_account", "fieldname": "bank_account",
"fieldtype": "Link", "fieldtype": "Link",
"reqd": 1, "reqd": 1,
"options": "Account" "permlevel": 0
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
@ -99,29 +67,27 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Get Non Reconciled Entries", "label": "Get Non Reconciled Entries",
"permlevel": 0, "options": "get_details",
"fieldname": "get_non_reconciled_entries", "fieldname": "get_non_reconciled_entries",
"fieldtype": "Button", "fieldtype": "Button",
"options": "get_details" "permlevel": 0
}, },
{ {
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Entries", "label": "Entries",
"permlevel": 0, "options": "Bank Reconciliation Detail",
"fieldname": "entries", "fieldname": "entries",
"fieldtype": "Table", "fieldtype": "Table",
"options": "Bank Reconciliation Detail" "permlevel": 0
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"label": "Update Clearance Date",
"options": "update_details", "options": "update_details",
"fieldname": "update_clearance_date", "fieldname": "update_clearance_date",
"fieldtype": "Button", "fieldtype": "Button",
"label": "Update Clearance Date",
"permlevel": 0 "permlevel": 0
}, },
{ {
@ -130,5 +96,18 @@
"fieldname": "total_amount", "fieldname": "total_amount",
"fieldtype": "Currency", "fieldtype": "Currency",
"permlevel": 1 "permlevel": 1
},
{
"create": 1,
"doctype": "DocPerm",
"write": 1,
"role": "Accounts User",
"permlevel": 0
},
{
"create": 0,
"doctype": "DocPerm",
"role": "All",
"permlevel": 1
} }
] ]

View File

@ -46,13 +46,13 @@ wn.module_page["Accounts"] = [
icon: "icon-wrench", icon: "icon-wrench",
items: [ items: [
{ {
"route":"#Form/Bank Reconciliation/Bank Reconciliation", "route":"Form/Bank Reconciliation/Bank Reconciliation",
"label": wn._("Bank Reconciliation"), "label": wn._("Bank Reconciliation"),
"description": wn._("Update bank payment dates with journals."), "description": wn._("Update bank payment dates with journals."),
doctype: "Bank Reconciliation" doctype: "Bank Reconciliation"
}, },
{ {
"route":"#Form/Payment to Invoice Matching Tool/Payment to Invoice Matching Tool", "route":"Form/Payment to Invoice Matching Tool/Payment to Invoice Matching Tool",
"label": wn._("Payment Reconciliation"), "label": wn._("Payment Reconciliation"),
"description": wn._("Match non-linked Invoices and Payments."), "description": wn._("Match non-linked Invoices and Payments."),
doctype: "Payment to Invoice Matching Tool" doctype: "Payment to Invoice Matching Tool"
@ -64,7 +64,7 @@ wn.module_page["Accounts"] = [
description: "Close Balance Sheet and book Profit or Loss." description: "Close Balance Sheet and book Profit or Loss."
}, },
{ {
"route":"#Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool", "route":"Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool",
"label": wn._("Sales and Purchase Return Tool"), "label": wn._("Sales and Purchase Return Tool"),
description: wn._("Manage sales or purchase returns"), description: wn._("Manage sales or purchase returns"),
"doctype": "Sales and Purchase Return Tool" "doctype": "Sales and Purchase Return Tool"

View File

@ -87,7 +87,7 @@ wn.module_page["HR"] = [
doctype: "Salary Structure" doctype: "Salary Structure"
}, },
{ {
"route":"#Form/Salary Manager/Salary Manager", "route":"Form/Salary Manager/Salary Manager",
"label":wn._("Process Payroll"), "label":wn._("Process Payroll"),
"description":wn._("Generate Salary Slips"), "description":wn._("Generate Salary Slips"),
doctype: "Salary Manager" doctype: "Salary Manager"

View File

@ -2,22 +2,18 @@
{ {
"owner": "Administrator", "owner": "Administrator",
"docstatus": 0, "docstatus": 0,
"creation": "2012-07-03 13:30:56", "creation": "2012-07-12 23:29:45",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-07-12 16:20:36" "modified": "2013-01-10 12:22:45"
}, },
{ {
"section_style": "Simple",
"description": "Send automatic emails to Contacts on Submitting transactions.",
"allow_print": 1,
"module": "Setup",
"allow_email": 1, "allow_email": 1,
"issingle": 1, "issingle": 1,
"description": "Send automatic emails to Contacts on Submitting transactions.",
"name": "__common__", "name": "__common__",
"colour": "White:FFF", "allow_print": 1,
"doctype": "DocType", "doctype": "DocType",
"server_code_error": " ", "module": "Setup",
"version": 1,
"allow_copy": 1 "allow_copy": 1
}, },
{ {
@ -42,26 +38,14 @@
"doctype": "DocType" "doctype": "DocType"
}, },
{ {
"write": 0, "description": "When any of the checked transactions are \"Submitted\", an email pop-up automatically opened to send an email to the associated \"Contact\" in that transaction, with the transaction as an attachment. The user may or may not send the email.",
"create": 0,
"role": "Guest",
"doctype": "DocPerm"
},
{
"write": 1,
"create": 1,
"role": "System Manager",
"doctype": "DocPerm"
},
{
"description": "When any of the checked transactions are \"Submitted\", an email is automatically sent to the associated \"Contact\" in that transaction, with the transaction as an attachment.",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Send Email Automatically on Submission of", "label": "Prompt for Email on Submission of",
"fieldname": "send_autonotification_for", "fieldname": "send_autonotification_for",
"fieldtype": "Section Break" "fieldtype": "Section Break"
}, },
{ {
"print_width": "50%",
"doctype": "DocField", "doctype": "DocField",
"label": "Sales", "label": "Sales",
"width": "50%", "width": "50%",
@ -70,29 +54,30 @@
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"label": "Quotation",
"fieldname": "quotation", "fieldname": "quotation",
"fieldtype": "Check", "fieldtype": "Check"
"label": "Quotation"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"label": "Sales Order",
"fieldname": "sales_order", "fieldname": "sales_order",
"fieldtype": "Check", "fieldtype": "Check"
"label": "Sales Order"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"label": "Delivery Note",
"fieldname": "delivery_note", "fieldname": "delivery_note",
"fieldtype": "Check", "fieldtype": "Check"
"label": "Delivery Note"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"label": "Sales Invoice",
"fieldname": "sales_invoice", "fieldname": "sales_invoice",
"fieldtype": "Check", "fieldtype": "Check"
"label": "Sales Invoice"
}, },
{ {
"print_width": "50%",
"doctype": "DocField", "doctype": "DocField",
"label": "Purchase", "label": "Purchase",
"width": "50%", "width": "50%",
@ -101,44 +86,41 @@
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"label": "Purchase Order",
"fieldname": "purchase_order", "fieldname": "purchase_order",
"fieldtype": "Check", "fieldtype": "Check"
"label": "Purchase Order"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"label": "Purchase Receipt",
"fieldname": "purchase_receipt", "fieldname": "purchase_receipt",
"fieldtype": "Check", "fieldtype": "Check"
"label": "Purchase Receipt"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"label": "Expense Claim",
"fieldname": "expense_claim", "fieldname": "expense_claim",
"fieldtype": "Check", "fieldtype": "Check"
"label": "Expense Claim"
}, },
{ {
"description": "Customize the introductory text that goes as a part of that email. Each transaction has a separate introductory text.", "description": "Customize the introductory text that goes as a part of that email. Each transaction has a separate introductory text.",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Customize the Notification", "label": "Customize the Notification",
"fieldname": "customize_the_notification", "fieldname": "customize_the_notification",
"fieldtype": "Section Break" "fieldtype": "Section Break"
}, },
{ {
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Select Transaction", "label": "Select Transaction",
"trigger": "Client",
"fieldname": "select_transaction", "fieldname": "select_transaction",
"fieldtype": "Select", "fieldtype": "Select",
"options": "\nQuotation\nSales Order\nDelivery Note\nSales Invoice\nPurchase Order\nPurchase Receipt\nExpense Claim\nExpense Claim Approved\nExpense Claim Rejected" "options": "\nQuotation\nSales Order\nDelivery Note\nSales Invoice\nPurchase Order\nPurchase Receipt\nExpense Claim\nExpense Claim Approved\nExpense Claim Rejected"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"label": "Custom Message",
"fieldname": "custom_message", "fieldname": "custom_message",
"fieldtype": "Text Editor", "fieldtype": "Text Editor"
"label": "Custom Message"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
@ -210,5 +192,17 @@
"fieldname": "expense_claim_rejected_message", "fieldname": "expense_claim_rejected_message",
"fieldtype": "Text", "fieldtype": "Text",
"hidden": 1 "hidden": 1
},
{
"create": 0,
"doctype": "DocPerm",
"write": 0,
"role": "Guest"
},
{
"create": 1,
"doctype": "DocPerm",
"write": 1,
"role": "System Manager"
} }
] ]

View File

@ -5,22 +5,24 @@ from __future__ import unicode_literals
import webnotes import webnotes
queries = { queries = {
"Support Ticket": "select count(*) from `tabSupport Ticket` where status='Open'", "Support Ticket": {"status":"Open"},
"Task": "select count(*) from `tabTask` where status='Open'", "Customer Issue": {"status":"Open"},
"Lead": "select count(*) from `tabLead` where status='Open'", "Task": {"status":"Open"},
"Opportunity": "docstatus", "Lead": {"status":"Open"},
"Quotation": "docstatus", "Opportunity": {"docstatus":0},
"Sales Order": "docstatus", "Quotation": {"docstatus":0},
"Journal Voucher": "docstatus", "Sales Order": {"docstatus":0},
"Sales Invoice": "docstatus", "Journal Voucher": {"docstatus":0},
"Purchase Invoice": "docstatus", "Sales Invoice": {"docstatus":0},
"Leave Application": "docstatus", "Purchase Invoice": {"docstatus":0},
"Expense Claim": "docstatus", "Leave Application": {"status":"Open"},
"Purchase Receipt": "docstatus", "Expense Claim": {"approval_status":"Draft"},
"Delivery Note": "docstatus", "Purchase Receipt": {"docstatus":0},
"Stock Entry": "docstatus", "Delivery Note": {"docstatus":0},
"Purchase Request": "docstatus", "Stock Entry": {"docstatus":0},
"Purchase Order": "docstatus", "Purchase Request": {"docstatus":0},
"Production Order": "docstatus", "Purchase Order": {"docstatus":0},
"Timesheet": "docstatus", "Production Order": {"docstatus":0},
"BOM": {"docstatus":0},
"Timesheet": {"docstatus":0},
} }

View File

@ -84,18 +84,19 @@ wn.module_page["Stock"] = [
description: wn._("Transportatoin cost distribution template.") description: wn._("Transportatoin cost distribution template.")
}, },
{ {
"route":"#Form/Landed Cost Wizard/Landed Cost Wizard", "route":"Form/Landed Cost Wizard/Landed Cost Wizard",
"label": wn._("Landed Cost Wizard"), "label": wn._("Landed Cost Wizard"),
description: wn._("Distribute transport overhead across items."), description: wn._("Distribute transport overhead across items."),
doctype: "Landed Cost Wizard" doctype: "Landed Cost Wizard"
}, },
{ {
"route":"#Form/Stock UOM Replace Utility/Stock UOM Replace Utility", "route":"Form/Stock UOM Replace Utility/Stock UOM Replace Utility",
"label": wn._("UOM Replace Utility"), "label": wn._("UOM Replace Utility"),
description: wn._("Change UOM for an Item."),
"doctype": "Stock UOM Replace Utility" "doctype": "Stock UOM Replace Utility"
}, },
{ {
"route":"#Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool", "route":"Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool",
"label": wn._("Sales and Purchase Return Tool"), "label": wn._("Sales and Purchase Return Tool"),
doctype: "Sales and Purchase Return Tool", doctype: "Sales and Purchase Return Tool",
description: wn._("Manage sales or purchase returns") description: wn._("Manage sales or purchase returns")