[moduleview] added top bar
This commit is contained in:
parent
4cd0a07290
commit
d420401ba3
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
wn.module_page["Accounts"] = [
|
wn.module_page["Accounts"] = [
|
||||||
{
|
{
|
||||||
|
top: true,
|
||||||
title: wn._("Documents"),
|
title: wn._("Documents"),
|
||||||
icon: "icon-copy",
|
icon: "icon-copy",
|
||||||
items: [
|
items: [
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
wn.module_page["Buying"] = [
|
wn.module_page["Buying"] = [
|
||||||
{
|
{
|
||||||
title: wn._("Documents"),
|
title: wn._("Documents"),
|
||||||
|
top: true,
|
||||||
icon: "icon-copy",
|
icon: "icon-copy",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
|
@ -3,9 +3,15 @@
|
|||||||
|
|
||||||
wn.module_page["HR"] = [
|
wn.module_page["HR"] = [
|
||||||
{
|
{
|
||||||
title: wn._("Documents"),
|
title: wn._("Top"),
|
||||||
|
top: true,
|
||||||
icon: "icon-copy",
|
icon: "icon-copy",
|
||||||
items: [
|
items: [
|
||||||
|
{
|
||||||
|
label: wn._("Employee"),
|
||||||
|
description: wn._("Employee records."),
|
||||||
|
doctype:"Employee"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: wn._("Leave Application"),
|
label: wn._("Leave Application"),
|
||||||
description: wn._("Applications for leave."),
|
description: wn._("Applications for leave."),
|
||||||
@ -16,6 +22,17 @@ wn.module_page["HR"] = [
|
|||||||
description: wn._("Claims for company expense."),
|
description: wn._("Claims for company expense."),
|
||||||
doctype:"Expense Claim"
|
doctype:"Expense Claim"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: wn._("Job Applicant"),
|
||||||
|
description: wn._("Applicant for a Job."),
|
||||||
|
doctype:"Job Applicant"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: wn._("Documents"),
|
||||||
|
icon: "icon-copy",
|
||||||
|
items: [
|
||||||
{
|
{
|
||||||
label: wn._("Attendance"),
|
label: wn._("Attendance"),
|
||||||
description: wn._("Attendance record."),
|
description: wn._("Attendance record."),
|
||||||
@ -31,22 +48,6 @@ wn.module_page["HR"] = [
|
|||||||
description: wn._("Performance appraisal."),
|
description: wn._("Performance appraisal."),
|
||||||
doctype:"Appraisal"
|
doctype:"Appraisal"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: wn._("Job Applicant"),
|
|
||||||
description: wn._("Applicant for a Job."),
|
|
||||||
doctype:"Job Applicant"
|
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: wn._("Masters"),
|
|
||||||
icon: "icon-book",
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
label: wn._("Employee"),
|
|
||||||
description: wn._("Employee records."),
|
|
||||||
doctype:"Employee"
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -4,8 +4,14 @@
|
|||||||
wn.module_page["Manufacturing"] = [
|
wn.module_page["Manufacturing"] = [
|
||||||
{
|
{
|
||||||
title: wn._("Documents"),
|
title: wn._("Documents"),
|
||||||
|
top: true,
|
||||||
icon: "icon-copy",
|
icon: "icon-copy",
|
||||||
items: [
|
items: [
|
||||||
|
{
|
||||||
|
label: wn._("Bill of Materials"),
|
||||||
|
description: wn._("Bill of Materials (BOM)"),
|
||||||
|
doctype:"BOM"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: wn._("Production Order"),
|
label: wn._("Production Order"),
|
||||||
description: wn._("Orders released for production."),
|
description: wn._("Orders released for production."),
|
||||||
@ -29,11 +35,6 @@ wn.module_page["Manufacturing"] = [
|
|||||||
title: wn._("Masters"),
|
title: wn._("Masters"),
|
||||||
icon: "icon-book",
|
icon: "icon-book",
|
||||||
items: [
|
items: [
|
||||||
{
|
|
||||||
label: wn._("Bill of Materials"),
|
|
||||||
description: wn._("Bill of Materials (BOM)"),
|
|
||||||
doctype:"BOM"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: wn._("Item"),
|
label: wn._("Item"),
|
||||||
description: wn._("All Products or Services."),
|
description: wn._("All Products or Services."),
|
||||||
|
@ -3,8 +3,9 @@
|
|||||||
|
|
||||||
wn.module_page["Projects"] = [
|
wn.module_page["Projects"] = [
|
||||||
{
|
{
|
||||||
title: wn._("Documents"),
|
title: wn._("Top"),
|
||||||
icon: "icon-copy",
|
icon: "icon-copy",
|
||||||
|
top: true,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: wn._("Task"),
|
label: wn._("Task"),
|
||||||
@ -21,6 +22,12 @@ wn.module_page["Projects"] = [
|
|||||||
description: wn._("Time Log for tasks."),
|
description: wn._("Time Log for tasks."),
|
||||||
doctype:"Time Log"
|
doctype:"Time Log"
|
||||||
},
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: wn._("Documents"),
|
||||||
|
icon: "icon-copy",
|
||||||
|
items: [
|
||||||
{
|
{
|
||||||
label: wn._("Time Log Batch"),
|
label: wn._("Time Log Batch"),
|
||||||
description: wn._("Batch Time Logs for billing."),
|
description: wn._("Batch Time Logs for billing."),
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
wn.module_page["Selling"] = [
|
wn.module_page["Selling"] = [
|
||||||
{
|
{
|
||||||
|
top: true,
|
||||||
title: wn._("Documents"),
|
title: wn._("Documents"),
|
||||||
icon: "icon-copy",
|
icon: "icon-copy",
|
||||||
items: [
|
items: [
|
||||||
|
@ -91,6 +91,19 @@ items = [
|
|||||||
},
|
},
|
||||||
{ "doctype": "Sales Taxes and Charges Master" },
|
{ "doctype": "Sales Taxes and Charges Master" },
|
||||||
{ "doctype": "Purchase Taxes and Charges Master" },
|
{ "doctype": "Purchase Taxes and Charges Master" },
|
||||||
|
{
|
||||||
|
"type": "Section",
|
||||||
|
"title": "Opening Accounts and Stock",
|
||||||
|
"icon": "icon-eye-open"
|
||||||
|
},
|
||||||
|
{ "doctype": "Stock Reconciliation" },
|
||||||
|
{
|
||||||
|
"doctype": "Journal Voucher",
|
||||||
|
"title": "Opening Accounting Entries",
|
||||||
|
"filter": {
|
||||||
|
"is_opening": "Yes"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "Section",
|
"type": "Section",
|
||||||
"title": "Human Resource",
|
"title": "Human Resource",
|
||||||
@ -148,19 +161,6 @@ items = [
|
|||||||
{
|
{
|
||||||
"doctype": "Email Digest",
|
"doctype": "Email Digest",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "Section",
|
|
||||||
"title": "Opening Accounts and Stock",
|
|
||||||
"icon": "icon-eye-open"
|
|
||||||
},
|
|
||||||
{ "doctype": "Stock Reconciliation" },
|
|
||||||
{
|
|
||||||
"doctype": "Journal Voucher",
|
|
||||||
"title": "Opening Accounting Entries",
|
|
||||||
"filter": {
|
|
||||||
"is_opening": "Yes"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "Section",
|
"type": "Section",
|
||||||
"title": "Customization",
|
"title": "Customization",
|
||||||
@ -244,8 +244,8 @@ def set_count(item):
|
|||||||
elif "filter" in item:
|
elif "filter" in item:
|
||||||
key = item["filter"].keys()[0]
|
key = item["filter"].keys()[0]
|
||||||
item["count"] = webnotes.conn.sql("""select count(*) from `tab%s` where
|
item["count"] = webnotes.conn.sql("""select count(*) from `tab%s` where
|
||||||
%s = %s""" % (item["doctype"], key, "%s"),
|
%s = %s and docstatus < 2""" % (item["doctype"], key, "%s"),
|
||||||
item["filter"][key])[0][0]
|
item["filter"][key])[0][0]
|
||||||
elif "doctype" in item:
|
elif "doctype" in item:
|
||||||
item["count"] = webnotes.conn.sql("select count(*) from `tab%s`" \
|
item["count"] = webnotes.conn.sql("select count(*) from `tab%s` where docstatus<2" \
|
||||||
% item["doctype"])[0][0]
|
% item["doctype"])[0][0]
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
wn.module_page["Stock"] = [
|
wn.module_page["Stock"] = [
|
||||||
{
|
{
|
||||||
title: wn._("Documents"),
|
title: wn._("Documents"),
|
||||||
|
top: true,
|
||||||
icon: "icon-copy",
|
icon: "icon-copy",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
wn.module_page["Support"] = [
|
wn.module_page["Support"] = [
|
||||||
{
|
{
|
||||||
title: wn._("Documents"),
|
title: wn._("Top"),
|
||||||
|
top: true,
|
||||||
icon: "icon-copy",
|
icon: "icon-copy",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
@ -16,6 +17,13 @@ wn.module_page["Support"] = [
|
|||||||
description: wn._("Customer Issue against Serial No."),
|
description: wn._("Customer Issue against Serial No."),
|
||||||
doctype:"Customer Issue"
|
doctype:"Customer Issue"
|
||||||
},
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
title: wn._("Documents"),
|
||||||
|
icon: "icon-copy",
|
||||||
|
items: [
|
||||||
{
|
{
|
||||||
label: wn._("Maintenance Schedule"),
|
label: wn._("Maintenance Schedule"),
|
||||||
description: wn._("Plan for maintenance visits."),
|
description: wn._("Plan for maintenance visits."),
|
||||||
|
@ -27,13 +27,13 @@ class DocType:
|
|||||||
|
|
||||||
def autoname(self):
|
def autoname(self):
|
||||||
if not self.doc.address_title:
|
if not self.doc.address_title:
|
||||||
self.doc.address_title = self.doc.customer or self.doc.supplier or self.doc.sales_partner or self.doc.lead
|
self.doc.address_title = self.doc.customer \
|
||||||
|
or self.doc.supplier or self.doc.sales_partner or self.doc.lead
|
||||||
|
|
||||||
if self.doc.address_title:
|
if self.doc.address_title:
|
||||||
self.doc.name = cstr(self.doc.address_title).strip() + "-" + cstr(self.doc.address_type).strip()
|
self.doc.name = cstr(self.doc.address_title).strip() + "-" + cstr(self.doc.address_type).strip()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
webnotes.msgprint("""Address Title is mandatory.""", raise_exception=True)
|
webnotes.msgprint("""Address Title is mandatory.""" + self.doc.customer, raise_exception=True)
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.validate_primary_address()
|
self.validate_primary_address()
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"creation": "2013-01-10 16:34:32",
|
"creation": "2013-01-10 16:34:32",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"modified": "2013-06-28 17:06:32",
|
"modified": "2013-07-01 15:56:39",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"owner": "Administrator"
|
"owner": "Administrator"
|
||||||
},
|
},
|
||||||
@ -59,7 +59,7 @@
|
|||||||
"fieldname": "address_title",
|
"fieldname": "address_title",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Address Title",
|
"label": "Address Title",
|
||||||
"reqd": 1
|
"reqd": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
|
@ -5,6 +5,7 @@ wn.module_page["Website"] = [
|
|||||||
{
|
{
|
||||||
title: wn._("Web Content"),
|
title: wn._("Web Content"),
|
||||||
icon: "icon-copy",
|
icon: "icon-copy",
|
||||||
|
top: true,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: wn._("Web Page"),
|
label: wn._("Web Page"),
|
||||||
@ -12,20 +13,20 @@ wn.module_page["Website"] = [
|
|||||||
doctype:"Web Page"
|
doctype:"Web Page"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: wn._("Website Slideshow"),
|
label: wn._("Blog Post"),
|
||||||
description: wn._("Embed image slideshows in website pages."),
|
description: wn._("Single Post (article)."),
|
||||||
doctype:"Website Slideshow"
|
doctype:"Blog Post"
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: wn._("Blog"),
|
title: wn._("Documents"),
|
||||||
icon: "icon-edit",
|
icon: "icon-edit",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: wn._("Blog Post"),
|
label: wn._("Website Slideshow"),
|
||||||
description: wn._("Single Post (article)."),
|
description: wn._("Embed image slideshows in website pages."),
|
||||||
doctype:"Blog Post"
|
doctype:"Website Slideshow"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: wn._("Blogger"),
|
label: wn._("Blogger"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user