Merge branch 'develop' of github.com:frappe/erpnext into v4-hotfix
This commit is contained in:
commit
b3bead2f06
@ -29,7 +29,7 @@ frappe.pages['setup-wizard'].onload = function(wrapper) {
|
|||||||
}, 2000);
|
}, 2000);
|
||||||
},
|
},
|
||||||
error: function(r) {
|
error: function(r) {
|
||||||
|
|
||||||
var d = msgprint(__("There were errors."));
|
var d = msgprint(__("There were errors."));
|
||||||
d.custom_onhide = function() {
|
d.custom_onhide = function() {
|
||||||
frappe.set_route(erpnext.wiz.page_name, "0");
|
frappe.set_route(erpnext.wiz.page_name, "0");
|
||||||
@ -223,8 +223,13 @@ frappe.pages['setup-wizard'].onload = function(wrapper) {
|
|||||||
title: __("Logo and Letter Heads"),
|
title: __("Logo and Letter Heads"),
|
||||||
help: __('Upload your letter head and logo - you can edit them later.'),
|
help: __('Upload your letter head and logo - you can edit them later.'),
|
||||||
fields: [
|
fields: [
|
||||||
{fieldtype:"Attach Image", fieldname:"attach_letterhead", label: __("Attach Letterhead")},
|
{fieldtype:"Attach Image", fieldname:"attach_letterhead",
|
||||||
{fieldtype:"Attach Image", fieldname:"attach_logo", label:__("Attach Logo")},
|
label: __("Attach Letterhead"),
|
||||||
|
description: __("Keep it web friendly 900px (w) by 100px (h)")
|
||||||
|
},
|
||||||
|
{fieldtype:"Attach Image", fieldname:"attach_logo",
|
||||||
|
label:__("Attach Logo"),
|
||||||
|
description: __("100px by 100px")},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -15,66 +15,73 @@ import install_fixtures
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def setup_account(args=None):
|
def setup_account(args=None):
|
||||||
frappe.clear_cache()
|
try:
|
||||||
|
frappe.clear_cache()
|
||||||
|
|
||||||
if frappe.db.sql("select name from tabCompany"):
|
if frappe.db.sql("select name from tabCompany"):
|
||||||
frappe.throw(_("Setup Already Complete!!"))
|
frappe.throw(_("Setup Already Complete!!"))
|
||||||
|
|
||||||
if not args:
|
if not args:
|
||||||
args = frappe.local.form_dict
|
args = frappe.local.form_dict
|
||||||
if isinstance(args, basestring):
|
if isinstance(args, basestring):
|
||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
args = frappe._dict(args)
|
|
||||||
|
|
||||||
if args.language != "english":
|
args = frappe._dict(args)
|
||||||
set_default_language(args.language)
|
|
||||||
|
|
||||||
install_fixtures.install(args.get("country"))
|
if args.language != "english":
|
||||||
|
set_default_language(args.language)
|
||||||
|
|
||||||
update_user_name(args)
|
install_fixtures.install(args.get("country"))
|
||||||
frappe.local.message_log = []
|
|
||||||
|
|
||||||
create_fiscal_year_and_company(args)
|
update_user_name(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
set_defaults(args)
|
create_fiscal_year_and_company(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_territories()
|
set_defaults(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_price_lists(args)
|
create_territories()
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_feed_and_todo()
|
create_price_lists(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_email_digest()
|
create_feed_and_todo()
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_letter_head(args)
|
create_email_digest()
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_taxes(args)
|
create_letter_head(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_items(args)
|
create_taxes(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_customers(args)
|
create_items(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_suppliers(args)
|
create_customers(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
frappe.db.set_default('desktop:home_page', 'desktop')
|
create_suppliers(args)
|
||||||
|
frappe.local.message_log = []
|
||||||
|
|
||||||
website_maker(args.company_name, args.company_tagline, args.name)
|
frappe.db.set_default('desktop:home_page', 'desktop')
|
||||||
create_logo(args)
|
|
||||||
|
|
||||||
frappe.clear_cache()
|
website_maker(args.company_name, args.company_tagline, args.name)
|
||||||
frappe.db.commit()
|
create_logo(args)
|
||||||
|
|
||||||
|
frappe.clear_cache()
|
||||||
|
frappe.db.commit()
|
||||||
|
except:
|
||||||
|
traceback = frappe.get_traceback()
|
||||||
|
for hook in frappe.get_hooks("setup_wizard_exception"):
|
||||||
|
frappe.get_attr(hook)(traceback, args)
|
||||||
|
|
||||||
|
raise
|
||||||
|
|
||||||
def update_user_name(args):
|
def update_user_name(args):
|
||||||
if args.get("email"):
|
if args.get("email"):
|
||||||
|
@ -109,9 +109,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "image",
|
"fieldname": "image",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Attach",
|
||||||
"label": "Image",
|
"label": "Image",
|
||||||
"options": "attach_files:",
|
"options": "",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"read_only": 0
|
"read_only": 0
|
||||||
},
|
},
|
||||||
@ -832,7 +832,7 @@
|
|||||||
"icon": "icon-tag",
|
"icon": "icon-tag",
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"max_attachments": 1,
|
"max_attachments": 1,
|
||||||
"modified": "2014-05-07 05:29:42.155019",
|
"modified": "2014-05-12 07:54:58.118118",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Item",
|
"name": "Item",
|
||||||
|
Loading…
Reference in New Issue
Block a user