Skip to content

Commit

Permalink
fix: disable conversion to user tz for sales order calender
Browse files Browse the repository at this point in the history
(cherry picked from commit cdf098c)
  • Loading branch information
ljain112 authored and mergify[bot] committed Nov 20, 2024
1 parent bc03b68 commit 83b9680
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,10 @@ def get_events(start, end, filters=None):
""",
{"start": start, "end": end},
as_dict=True,
update={"allDay": 0},
update={
"allDay": 0,
"convertToUserTz": 0,
},
)
return data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ frappe.views.calendar["Sales Order"] = {
id: "name",
title: "customer_name",
allDay: "allDay",
convertToUserTz: "convertToUserTz",
},
gantt: true,
filters: [
Expand Down

0 comments on commit 83b9680

Please sign in to comment.