[minor] [fixes] view in website and other fixes
This commit is contained in:
@@ -7,6 +7,12 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
||||
cur_frm.add_custom_button("Item Group Tree", function() {
|
||||
wn.set_route("Sales Browser", "Item Group");
|
||||
})
|
||||
|
||||
if(!doc.__islocal && doc.show_in_website) {
|
||||
cur_frm.add_custom_button("View In Website", function() {
|
||||
window.open(doc.page_name);
|
||||
}, "icon-globe");
|
||||
}
|
||||
}
|
||||
|
||||
cur_frm.cscript.set_root_readonly = function(doc) {
|
||||
|
||||
@@ -17,9 +17,8 @@ def setup_account(args=None):
|
||||
args = webnotes.local.form_dict
|
||||
if isinstance(args, basestring):
|
||||
args = json.loads(args)
|
||||
|
||||
webnotes.conn.begin()
|
||||
|
||||
args = webnotes._dict(args)
|
||||
|
||||
update_profile_name(args)
|
||||
create_fiscal_year_and_company(args)
|
||||
set_defaults(args)
|
||||
|
||||
Reference in New Issue
Block a user