mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
[style] default website
This commit is contained in:
9
erpnext/patches/v4_2/default_website_style.py
Normal file
9
erpnext/patches/v4_2/default_website_style.py
Normal 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()
|
||||
Reference in New Issue
Block a user