[style] default website

This commit is contained in:
Rushabh Mehta
2014-08-25 15:17:20 +05:30
parent 7a6ab91080
commit 52f04da5f5
4 changed files with 14 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
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()