brotherton-erpnext/erpnext/patches/v4_2/default_website_style.py

12 lines
343 B
Python
Raw Normal View History

from __future__ import unicode_literals
2014-08-25 15:17:20 +05:30
import frappe
def execute():
2017-04-13 13:13:52 +05:30
return
frappe.reload_doc('website', 'doctype', 'style_settings')
2014-08-25 15:17:20 +05:30
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)
style_settings.apply_style = 1
style_settings.save()