Selaa lähdekoodia

fix event color patch (#3943)

version-14
Faris Ansari 8 vuotta sitten
committed by Makarand Bauskar
vanhempi
commit
473083ae9d
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. +4
    -0
      frappe/patches/v8_5/patch_event_colors.py

+ 4
- 0
frappe/patches/v8_5/patch_event_colors.py Näytä tiedosto

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


def execute(): def execute():

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

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




Ladataan…
Peruuta
Tallenna