[patch] [fix]
This commit is contained in:
parent
a5e4dc85db
commit
c8b2a9d654
@ -8,7 +8,7 @@ def execute():
|
|||||||
if header and header.startswith("<div class='hero text-center'>"):
|
if header and header.startswith("<div class='hero text-center'>"):
|
||||||
homepage = frappe.get_doc('Homepage', 'Homepage')
|
homepage = frappe.get_doc('Homepage', 'Homepage')
|
||||||
homepage.company = erpnext.get_default_company()
|
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.setup_items()
|
||||||
homepage.save()
|
homepage.save()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user