Merge branch 'develop' of github.com:frappe/erpnext into v4-hotfix
This commit is contained in:
commit
b3bead2f06
@ -223,8 +223,13 @@ frappe.pages['setup-wizard'].onload = function(wrapper) {
|
||||
title: __("Logo and Letter Heads"),
|
||||
help: __('Upload your letter head and logo - you can edit them later.'),
|
||||
fields: [
|
||||
{fieldtype:"Attach Image", fieldname:"attach_letterhead", label: __("Attach Letterhead")},
|
||||
{fieldtype:"Attach Image", fieldname:"attach_logo", label:__("Attach Logo")},
|
||||
{fieldtype:"Attach Image", fieldname:"attach_letterhead",
|
||||
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,6 +15,7 @@ import install_fixtures
|
||||
|
||||
@frappe.whitelist()
|
||||
def setup_account(args=None):
|
||||
try:
|
||||
frappe.clear_cache()
|
||||
|
||||
if frappe.db.sql("select name from tabCompany"):
|
||||
@ -24,6 +25,7 @@ def setup_account(args=None):
|
||||
args = frappe.local.form_dict
|
||||
if isinstance(args, basestring):
|
||||
args = json.loads(args)
|
||||
|
||||
args = frappe._dict(args)
|
||||
|
||||
if args.language != "english":
|
||||
@ -74,7 +76,12 @@ def setup_account(args=None):
|
||||
|
||||
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):
|
||||
if args.get("email"):
|
||||
|
@ -109,9 +109,9 @@
|
||||
},
|
||||
{
|
||||
"fieldname": "image",
|
||||
"fieldtype": "Select",
|
||||
"fieldtype": "Attach",
|
||||
"label": "Image",
|
||||
"options": "attach_files:",
|
||||
"options": "",
|
||||
"permlevel": 0,
|
||||
"read_only": 0
|
||||
},
|
||||
@ -832,7 +832,7 @@
|
||||
"icon": "icon-tag",
|
||||
"idx": 1,
|
||||
"max_attachments": 1,
|
||||
"modified": "2014-05-07 05:29:42.155019",
|
||||
"modified": "2014-05-12 07:54:58.118118",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Item",
|
||||
|
Loading…
x
Reference in New Issue
Block a user