Merge branch 'responsive' of github.com:webnotes/erpnext into responsive
diff --git a/accounts/doctype/account/account.py b/accounts/doctype/account/account.py
index bdc26e4..45b02a8 100644
--- a/accounts/doctype/account/account.py
+++ b/accounts/doctype/account/account.py
@@ -29,6 +29,7 @@
self.nsm_parent_field = 'parent_account'
def autoname(self):
+ """Append abbreviation to company on naming"""
self.doc.name = self.doc.account_name.strip() + ' - ' + \
webnotes.conn.get_value("Company", self.doc.company, "abbr")
@@ -37,6 +38,7 @@
return {'address': address}
def validate_master_name(self):
+ """Remind to add master name"""
if (self.doc.master_type == 'Customer' or self.doc.master_type == 'Supplier') \
and not self.doc.master_name:
msgprint("Message: Please enter Master Name once the account is created.")
@@ -62,6 +64,7 @@
self.doc.debit_or_credit = par[0][3]
def validate_max_root_accounts(self):
+ """Raise exception if there are more than 4 root accounts"""
if webnotes.conn.sql("""select count(*) from tabAccount where
company=%s and ifnull(parent_account,'')='' and docstatus != 2""",
self.doc.company)[0][0] > 4:
@@ -69,7 +72,6 @@
raise_exception=1)
def validate_duplicate_account(self):
-
if self.doc.fields.get('__islocal') or not self.doc.name:
company_abbr = webnotes.conn.get_value("Company", self.doc.company, "abbr")
if sql("""select name from tabAccount where name=%s""",
@@ -134,6 +136,7 @@
self.doc.parent_account = ''
def update_nsm_model(self):
+ """update lft, rgt indices for nested set model"""
import webnotes
import webnotes.utils.nestedset
webnotes.utils.nestedset.update_nsm(self)
diff --git a/accounts/page/accounts_browser/README.md b/accounts/page/accounts_browser/README.md
new file mode 100644
index 0000000..b879561
--- /dev/null
+++ b/accounts/page/accounts_browser/README.md
@@ -0,0 +1 @@
+Tree view browser for Chart of Accounts and Chart of Cost Centers
\ No newline at end of file
diff --git a/buying/page/purchase_analytics/purchase_analytics.js b/buying/page/purchase_analytics/purchase_analytics.js
index 857a335..96b88b3 100644
--- a/buying/page/purchase_analytics/purchase_analytics.js
+++ b/buying/page/purchase_analytics/purchase_analytics.js
@@ -49,7 +49,7 @@
item_key: "supplier",
parent_field: "parent_supplier_type",
formatter: function(item) {
- // return repl('<a href="#Report2/stock-invoices/customer=%(enc_value)s">%(value)s</a>', {
+ // return repl('<a href="#Report/stock-invoices/customer=%(enc_value)s">%(value)s</a>', {
// value: item.name,
// enc_value: encodeURIComponent(item.name)
// });
diff --git a/config.json b/config.json
index 4bd1b1d..e0b85b1 100644
--- a/config.json
+++ b/config.json
@@ -2,69 +2,69 @@
"modules": {
"Selling": {
"link": "selling-home",
- "color": "#3f4901",
+ "color": "#1abc9c",
"icon": "icon-tag",
"type": "module"
},
"Accounts": {
"link": "accounts-home",
- "color": "#025770",
+ "color": "#3498db",
"icon": "icon-money",
"type": "module"
},
"Stock": {
"type": "module",
"link": "stock-home",
- "color": "#a66a02",
+ "color": "#f39c12",
"icon": "icon-truck"
},
"Buying": {
"type": "module",
"link": "buying-home",
- "color": "#8F0222",
+ "color": "#c0392b",
"icon": "icon-shopping-cart"
},
"Support": {
"type": "module",
"link": "support-home",
- "color": "#410169",
+ "color": "#2c3e50",
"icon": "icon-phone"
},
"Projects": {
"type": "module",
"link": "projects-home",
- "color": "#473b7f",
+ "color": "#8e44ad",
"icon": "icon-tasks"
},
"Manufacturing": {
"type": "module",
"link": "manufacturing-home",
- "color": "#590116",
- "icon": "icon-magic"
+ "color": "#7f8c8d",
+ "icon": "icon-cogs"
},
"Website": {
"type": "module",
"link": "website-home",
- "color": "#968c00",
+ "color": "#16a085",
"icon": "icon-globe"
},
"HR": {
"type": "module",
"link": "hr-home",
- "color": "#018d6c",
+ "color": "#2ecc71",
"label": "Human Resources",
"icon": "icon-group"
},
"Setup": {
"type": "setup",
"link": "Setup",
- "color": "#484848",
+ "color": "#bdc3c7",
"icon": "icon-wrench"
},
"Activity": {
"type": "page",
"link": "activity",
- "color": "#633501",
+ "color": "#e67e22",
"icon": "icon-play",
"label": "Activity"
},
@@ -72,9 +72,9 @@
"type": "list",
"doctype": "Note",
"link": "List/Note",
- "color": "#01372b",
+ "color": "#95a5a6",
"label": "Notes",
- "icon": "icon-question-sign"
+ "icon": "icon-file-alt"
}
},
"web": {
diff --git a/home/page/activity/activity.js b/home/page/activity/activity.js
index cf7a06f..e412a23 100644
--- a/home/page/activity/activity.js
+++ b/home/page/activity/activity.js
@@ -19,7 +19,7 @@
// Build Report Button
if(wn.boot.profile.can_get_report.indexOf("Feed")!=-1) {
wrapper.appframe.add_button('Build Report', function() {
- wn.set_route('Report2', "Feed");
+ wn.set_route('Report', "Feed");
}, 'icon-th')
}
}
diff --git a/hr/page/hr_home/hr_home.js b/hr/page/hr_home/hr_home.js
index 060d60a..bee05f6 100644
--- a/hr/page/hr_home/hr_home.js
+++ b/hr/page/hr_home/hr_home.js
@@ -175,7 +175,7 @@
},
{
"label":wn._("Employee Information"),
- route: "Report2/Employee/Employee Information"
+ route: "Report/Employee/Employee Information"
},
{
"label":wn._("Monthly Salary Register"),
diff --git a/public/images/erpnext-2013.svg b/public/images/erpnext-2013.svg
new file mode 100644
index 0000000..6a4c445
--- /dev/null
+++ b/public/images/erpnext-2013.svg
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="744.09448819"
+ height="1052.3622047"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.2 r9819"
+ sodipodi:docname="erpnext-logo-2013 - flat-ui-colors.svg"
+ inkscape:export-filename="/Users/anandpdoshi/Dropbox/erpnext/logo 2013/erpnext-logo-2013 other colors 3.png"
+ inkscape:export-xdpi="167.56363"
+ inkscape:export-ydpi="167.56363">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.53740115"
+ inkscape:cx="523.82055"
+ inkscape:cy="650.03526"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer5"
+ showgrid="false"
+ inkscape:snap-bbox="false"
+ showguides="true"
+ inkscape:guide-bbox="true"
+ inkscape:snap-global="true"
+ inkscape:bbox-paths="false"
+ inkscape:bbox-nodes="false"
+ inkscape:snap-page="false"
+ inkscape:snap-grids="true"
+ inkscape:window-width="721"
+ inkscape:window-height="690"
+ inkscape:window-x="559"
+ inkscape:window-y="0"
+ inkscape:window-maximized="0">
+ <inkscape:grid
+ type="xygrid"
+ id="grid3836" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ style="display:inline">
+ <rect
+ style="opacity:0.90000000000000002;fill:#f39c12;fill-opacity:1"
+ id="rect3800"
+ width="150"
+ height="150"
+ x="60.000008"
+ y="-472.36218"
+ rx="20"
+ ry="20"
+ transform="scale(1,-1)" />
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer2"
+ inkscape:label="Layer 2">
+ <path
+ transform="scale(1,-1)"
+ style="display:inline;opacity:0.90000000000000002;fill:#f1c40f;fill-opacity:1"
+ d="m 180,-372.36218 110,0 20,0 0,20 0,110 c 0,11.08 -8.92,20 -20,20 l -110,0 c -11.08,0 -20,-8.92 -20,-20 l 0,-110 c 0,-11.08 8.92,-20 20,-20 z"
+ id="rect3051"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="scccssssss" />
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer3"
+ inkscape:label="Layer 3">
+ <rect
+ style="display:inline;opacity:0.90000000000000002;fill:#2ecc71;fill-opacity:0.94117647"
+ id="rect3840"
+ width="150"
+ height="150"
+ x="260"
+ y="-272.36218"
+ rx="20"
+ ry="20"
+ transform="scale(1,-1)" />
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer4"
+ inkscape:label="Layer 4">
+ <path
+ sodipodi:nodetypes="scccssssss"
+ inkscape:connector-curvature="0"
+ id="path3054"
+ d="m 490,372.36218 -110,0 -20,0 0,-20 0,-110 c 0,-11.08 8.92,-20 20,-20 l 110,0 c 11.08,0 20,8.92 20,20 l 0,110 c 0,11.08 -8.92,20 -20,20 z"
+ style="display:inline;opacity:0.90000000000000002;fill:#27ae60;fill-opacity:1" />
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer5"
+ inkscape:label="Layer 5">
+ <rect
+ style="display:inline;opacity:0.90000000000000002;fill:#3498db;fill-opacity:0.94117647"
+ id="rect3844"
+ width="150"
+ height="150"
+ x="460"
+ y="-472.36218"
+ rx="20"
+ ry="20"
+ transform="scale(1,-1)" />
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer6"
+ inkscape:label="Layer 6">
+ <path
+ style="display:inline;opacity:0.90000000000000002;fill:#2980b9;fill-opacity:0.94117647"
+ d="m 490,422.36218 -110,0 -20,0 0,20 0,110 c 0,11.08 8.92,20 20,20 l 110,0 c 11.08,0 20,-8.92 20,-20 l 0,-110 c 0,-11.08 -8.92,-20 -20,-20 z"
+ id="path3058"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="scccssssss" />
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer7"
+ inkscape:label="Layer 7">
+ <rect
+ style="display:inline;opacity:0.90000000000000002;fill:#c0392b;fill-opacity:1"
+ id="rect3848"
+ width="150"
+ height="150"
+ x="260"
+ y="-672.36218"
+ rx="20"
+ ry="20"
+ transform="scale(1,-1)" />
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer8"
+ inkscape:label="Layer 8">
+ <path
+ sodipodi:nodetypes="scccssssss"
+ inkscape:connector-curvature="0"
+ id="path3056"
+ d="m 180,422.36218 110,0 20,0 0,20 0,110 c 0,11.08 -8.92,20 -20,20 l -110,0 c -11.08,0 -20,-8.92 -20,-20 l 0,-110 c 0,-11.08 8.92,-20 20,-20 z"
+ style="display:inline;opacity:0.90000000000000002;fill:#e74c3c;fill-opacity:1" />
+ </g>
+</svg>
diff --git a/public/images/favicon.ico b/public/images/favicon.ico
index 045b1bd..c50923e 100644
--- a/public/images/favicon.ico
+++ b/public/images/favicon.ico
Binary files differ
diff --git a/stock/page/stock_home/stock_home.js b/stock/page/stock_home/stock_home.js
index 5babf15..fd1f977 100644
--- a/stock/page/stock_home/stock_home.js
+++ b/stock/page/stock_home/stock_home.js
@@ -164,7 +164,7 @@
items: [
{
"label":wn._("Stock Ledger"),
- route: "Report2/Stock Ledger Entry/Stock Ledger",
+ route: "Report/Stock Ledger Entry/Stock Ledger",
doctype: "Stock Ledger Entry"
},
{
@@ -179,17 +179,17 @@
},
{
"label":wn._("Serial No Service Contract Expiry"),
- route: "Report2/Serial No/Serial No Service Contract Expiry",
+ route: "Report/Serial No/Serial No Service Contract Expiry",
doctype: "Serial No"
},
{
"label":wn._("Serial No Status"),
- route: "Report2/Serial No/Serial No Status",
+ route: "Report/Serial No/Serial No Status",
doctype: "Serial No"
},
{
"label":wn._("Serial No Warranty Expiry"),
- route: "Report2/Serial No/Serial No Warranty Expiry",
+ route: "Report/Serial No/Serial No Warranty Expiry",
doctype: "Serial No"
},
{