fix: make changes that enable gantt view for job cards (#37661)
* fix: make changes that enable gantt view for job cards
* fix: add fields on listview and remove from json file
* fix: undo modified date
---------
Co-authored-by: Dietmar Fischer <fischer@kk-software.de>
(cherry picked from commit 500435b856)
Co-authored-by: Didiman1998 <118364772+Didiman1998@users.noreply.github.com>
This commit is contained in:
@@ -10,8 +10,8 @@ frappe.views.calendar["Job Card"] = {
|
|||||||
},
|
},
|
||||||
gantt: {
|
gantt: {
|
||||||
field_map: {
|
field_map: {
|
||||||
"start": "started_time",
|
"start": "expected_start_date",
|
||||||
"end": "started_time",
|
"end": "expected_end_date",
|
||||||
"id": "name",
|
"id": "name",
|
||||||
"title": "subject",
|
"title": "subject",
|
||||||
"color": "color",
|
"color": "color",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
frappe.listview_settings['Job Card'] = {
|
frappe.listview_settings['Job Card'] = {
|
||||||
has_indicator_for_draft: true,
|
has_indicator_for_draft: true,
|
||||||
|
add_fields: ["expected_start_date", "expected_end_date"],
|
||||||
get_indicator: function(doc) {
|
get_indicator: function(doc) {
|
||||||
const status_colors = {
|
const status_colors = {
|
||||||
"Work In Progress": "orange",
|
"Work In Progress": "orange",
|
||||||
|
|||||||
Reference in New Issue
Block a user