renamed color field

This commit is contained in:
Shreya 2018-04-30 13:58:17 +05:30
parent 9c688f6dbf
commit fd47b92138
11 changed files with 18 additions and 21 deletions

View File

@ -189,7 +189,7 @@ def get_course_schedule_events(start, end, filters=None):
from frappe.desk.calendar import get_event_conditions
conditions = get_event_conditions("Course Schedule", filters)
data = frappe.db.sql("""select name, course, _color,
data = frappe.db.sql("""select name, course, color,
timestamp(schedule_date, from_time) as from_datetime,
timestamp(schedule_date, to_time) as to_datetime,
room, student_group, 0 as 'allDay'

View File

@ -210,7 +210,7 @@
"bold": 0,
"collapsible": 0,
"columns": 0,
"fieldname": "_color",
"fieldname": "color",
"fieldtype": "Color",
"hidden": 0,
"ignore_user_permissions": 0,
@ -464,7 +464,7 @@
"istable": 0,
"max_attachments": 0,
"menu_index": 0,
"modified": "2018-04-29 12:02:31.960104",
"modified": "2018-04-30 12:49:51.094872",
"modified_by": "Administrator",
"module": "Education",
"name": "Course Schedule",

View File

@ -5,8 +5,7 @@ frappe.views.calendar["Course Schedule"] = {
"end": "to_datetime",
"id": "name",
"title": "course",
"allDay": "allDay",
"color": "_color"
"allDay": "allDay"
},
gantt: false,
order_by: "schedule_date",

View File

@ -269,7 +269,7 @@
"bold": 0,
"collapsible": 0,
"columns": 0,
"fieldname": "_color",
"fieldname": "color",
"fieldtype": "Color",
"hidden": 0,
"ignore_user_permissions": 0,
@ -306,7 +306,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
"modified": "2018-04-27 17:16:37.720416",
"modified": "2018-04-30 12:49:59.239227",
"modified_by": "Administrator",
"module": "HR",
"name": "Holiday List",

View File

@ -79,6 +79,6 @@ def get_events(start, end, filters=None):
if end:
filters.append(['Holiday', 'holiday_date', '<', getdate(end)])
return frappe.get_list('Holiday List',
fields=['name', '`tabHoliday`.holiday_date', '`tabHoliday`.description', '`tabHoliday List`._color'],
fields=['name', '`tabHoliday`.holiday_date', '`tabHoliday`.description', '`tabHoliday List`.color'],
filters = filters,
update={"allDay": 1})

View File

@ -8,7 +8,7 @@ frappe.views.calendar["Holiday List"] = {
"id": "name",
"title": "description",
"allDay": "allDay",
"color": "_color"
"color": "color"
},
get_events_method: "erpnext.hr.doctype.holiday_list.holiday_list.get_events",
filters: [

View File

@ -695,7 +695,7 @@
"bold": 0,
"collapsible": 0,
"columns": 0,
"fieldname": "_color",
"fieldname": "color",
"fieldtype": "Color",
"hidden": 0,
"ignore_user_permissions": 0,
@ -854,7 +854,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 3,
"modified": "2018-04-27 17:37:43.021792",
"modified": "2018-04-30 12:49:40.845022",
"modified_by": "Administrator",
"module": "HR",
"name": "Leave Application",

View File

@ -407,7 +407,7 @@ def add_department_leaves(events, start, end, employee, company):
add_leaves(events, start, end, match_conditions=match_conditions)
def add_leaves(events, start, end, match_conditions=None):
query = """select name, from_date, to_date, employee_name, _color, half_day,
query = """select name, from_date, to_date, employee_name, color, half_day,
employee, docstatus
from `tabLeave Application` where
from_date <= %(end)s and to_date >= %(start)s <= to_date
@ -422,7 +422,7 @@ def add_leaves(events, start, end, match_conditions=None):
"from_date": d.from_date,
"to_date": d.to_date,
"docstatus": d.docstatus,
"color": d._color,
"color": d.color,
"title": cstr(d.employee_name) + \
(d.half_day and _(" (Half Day)") or ""),
}

View File

@ -7,8 +7,7 @@ frappe.views.calendar["Leave Application"] = {
"end": "to_date",
"id": "name",
"title": "title",
"docstatus": 1,
"color": "_color"
"docstatus": 1
},
options: {
header: {

View File

@ -503,7 +503,7 @@
"bold": 0,
"collapsible": 0,
"columns": 0,
"fieldname": "_color",
"fieldname": "color",
"fieldtype": "Color",
"hidden": 0,
"ignore_user_permissions": 0,
@ -1283,7 +1283,7 @@
"istable": 0,
"max_attachments": 5,
"menu_index": 0,
"modified": "2018-04-27 16:31:41.490545",
"modified": "2018-04-30 12:48:52.743838",
"modified_by": "Administrator",
"module": "Projects",
"name": "Task",

View File

@ -8,8 +8,7 @@ frappe.views.calendar["Task"] = {
"id": "name",
"title": "subject",
"allDay": "allDay",
"progress": "progress",
"color": "_color"
"progress": "progress"
},
gantt: true,
filters: [