fix(patch): custom and standard scss is separated in theme

This commit is contained in:
Rushabh Mehta 2020-04-16 12:37:53 +05:30
parent 141a7241b0
commit ab673a9bb9
2 changed files with 10 additions and 0 deletions

View file

@ -272,3 +272,4 @@ execute:frappe.delete_doc_if_exists('DocType', 'GCalendar Account')
execute:frappe.delete_doc_if_exists('DocType', 'GCalendar Settings')
frappe.patches.v12_0.remove_parent_and_parenttype_from_print_formats
execute:from frappe.desk.page.setup_wizard.install_fixtures import update_genders;update_genders()
frappe.patches.v13_0.website_theme_custom_scss

View file

@ -0,0 +1,9 @@
import frappe
def execute():
for theme in frappe.get_all('Website Theme'):
doc = frappe.get_doc('Website Theme', theme.name)
if not doc.custom_scss and doc.theme_scss:
# move old theme to new theme
doc.custom_scss = doc.theme_scss
doc.save()