[fix] [patch] update home page

This commit is contained in:
Anand Doshi 2016-05-17 10:21:08 +05:30
parent a484ff751b
commit 0d66260d31

View File

@ -10,7 +10,7 @@ def execute():
if header and header.startswith("<div class='hero text-center'>"):
homepage = frappe.get_doc('Homepage', 'Homepage')
homepage.company = erpnext.get_default_company()
homepage.tagline = header.split('<h1>')[1].split('</h1>')[0] or 'Default Website'
homepage.tag_line = header.split('<h1>')[1].split('</h1>')[0] or 'Default Website'
homepage.setup_items()
homepage.save()