[setup] bug fixes

This commit is contained in:
Rushabh Mehta
2013-06-26 22:31:22 +05:30
parent 5381bdd730
commit 65d12926fd
6 changed files with 21 additions and 10 deletions

View File

@@ -119,7 +119,7 @@ class DocType:
stock_settings.save()
selling_settings = webnotes.bean("Selling Settings")
selling_settings.cust_master_name = "Customer Name"
selling_settings.doc.cust_master_name = "Customer Name"
selling_settings.doc.so_required = "No"
selling_settings.doc.dn_required = "No"
selling_settings.save()

View File

@@ -73,11 +73,6 @@ wn.pages['Setup'].onload = function(wrapper) {
+'</div>')
.appendTo(row);
if(dependency)
col.addClass("col-offset-1");
else
$('<div class="col col-lg-1"></div>').appendTo(row);
col.find(".badge")
.css({
"background-color": (item.count ? "green" : "orange"),
@@ -89,13 +84,18 @@ wn.pages['Setup'].onload = function(wrapper) {
if(item.count)
completed += 1;
}
if(dependency)
col.addClass("col-offset-1");
else
$('<div class="col col-lg-1"></div>').appendTo(row);
if(item.doctype) {
col.find(".badge")
.attr("data-doctype", item.doctype)
.css({"cursor": "pointer"})
.click(function() {
wn.set_route("List", $(this).attr("data-doctype"))
wn.set_route(item.tree || "List", $(this).attr("data-doctype"))
})
}

View File

@@ -38,6 +38,8 @@ items = [
{"doctype":"UOM"},
{"doctype":"Brand"},
{"doctype":"Price List"},
{ "title": "Stock Settings",
"route": "Form/Stock Settings", "type": "Link", "icon": "icon-cog" },
],
},
{
@@ -48,6 +50,8 @@ items = [
{"doctype":"Sales Person", "tree": "Sales Browser"},
{"doctype":"Contact"},
{"doctype":"Address"},
{ "title": "Selling Settings",
"route": "Form/Selling Settings", "type": "Link", "icon": "icon-cog" },
]
},
{
@@ -56,6 +60,8 @@ items = [
{"doctype":"Supplier Type"},
{"doctype":"Contact"},
{"doctype":"Address"},
{ "title": "Buying Settings",
"route": "Form/Buying Settings", "type": "Link", "icon": "icon-cog" },
]
},
{