From ee1044fde509745c42aca3c3c41412e0dbec0b18 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 27 Aug 2013 14:49:04 +0530 Subject: [PATCH] [minor] [demo] show banner on login --- utilities/demo/make_erpnext_demo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utilities/demo/make_erpnext_demo.py b/utilities/demo/make_erpnext_demo.py index 16d57bb856..2a957f6129 100644 --- a/utilities/demo/make_erpnext_demo.py +++ b/utilities/demo/make_erpnext_demo.py @@ -77,6 +77,10 @@ def make_demo_on_login_script(): with open(os.path.join(os.path.dirname(__file__), "demo_control_panel.py"), "r") as dfile: s.doc.script = dfile.read() s.insert() + + cp = webnotes.bean("Control Panel") + cp.doc.custom_startup_code = """wn.ui.toolbar.show_banner('You are using ERPNext Demo. To start your own ERPNext Trial, click here')""" + cp.save() webnotes.conn.commit()