[setup wizard] added more steps [minor] [wip]

This commit is contained in:
Rushabh Mehta
2013-10-07 18:22:29 +05:30
parent ae307e8bf8
commit 8941841a9c
2 changed files with 113 additions and 30 deletions

View File

@@ -20,7 +20,7 @@ $.extend(erpnext, {
hide_company: function() {
if(cur_frm.fields_dict.company) {
var companies = Object.keys(locals[":Company"]);
var companies = Object.keys(locals[":Company"] || {});
if(companies.length === 1) {
if(!cur_frm.doc.company) cur_frm.set_value("company", companies[0]);
cur_frm.toggle_display("company", false);