[fix] [patch] update home page
This commit is contained in:
parent
a484ff751b
commit
0d66260d31
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user