소스 검색

fix: Add patch to set week_starts_on as "Monday"

version-14
Suraj Shetty 3 년 전
부모
커밋
ca9b2a953d
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      frappe/patches.txt
  2. +7
    -0
      frappe/patches/v13_0/set_week_starts_on.py

+ 1
- 0
frappe/patches.txt 파일 보기

@@ -182,6 +182,7 @@ frappe.patches.v13_0.queryreport_columns
execute:frappe.reload_doc('core', 'doctype', 'doctype')
frappe.patches.v13_0.jinja_hook
frappe.patches.v13_0.update_notification_channel_if_empty
frappe.patches.v13_0.set_week_starts_on
frappe.patches.v14_0.drop_data_import_legacy
frappe.patches.v14_0.rename_cancelled_documents
frappe.patches.v14_0.copy_mail_data #08.03.21


+ 7
- 0
frappe/patches/v13_0/set_week_starts_on.py 파일 보기

@@ -0,0 +1,7 @@
import frappe

def execute():
frappe.reload_doctype("System Settings")
# setting week_starts_on value as "Monday" to avoid breaking change
# because before the configuration was introduced, system used to consider "Monday" as start of the week
frappe.db.set_value("System Settings", "System Settings", "week_starts_on", "Monday")

불러오는 중...
취소
저장