浏览代码

fix event color patch (#3943)

version-14
Faris Ansari 8 年前
committed by Makarand Bauskar
父节点
当前提交
473083ae9d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      frappe/patches/v8_5/patch_event_colors.py

+ 4
- 0
frappe/patches/v8_5/patch_event_colors.py 查看文件

@@ -2,6 +2,10 @@ from __future__ import unicode_literals
import frappe

def execute():

if not frappe.db.sql("SHOW COLUMNS FROM `tabEvent` LIKE 'color';"):
return

colors = ['red', 'green', 'blue', 'yellow', 'skyblue', 'orange']
hex_colors = ['#ffc4c4', '#cef6d1', '#d2d2ff', '#fffacd', '#d2f1ff', '#ffd2c2']



正在加载...
取消
保存