mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
datetime issue fixed in maintenance schedule
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
from frappe.utils import add_days, getdate, cint
|
from frappe.utils import add_days, getdate, cint, cstr
|
||||||
|
|
||||||
from frappe import throw, _
|
from frappe import throw, _
|
||||||
from erpnext.utilities.transaction_base import TransactionBase, delete_events
|
from erpnext.utilities.transaction_base import TransactionBase, delete_events
|
||||||
@@ -73,7 +73,7 @@ class MaintenanceSchedule(TransactionBase):
|
|||||||
"owner": email_map[d.sales_person] or self.owner,
|
"owner": email_map[d.sales_person] or self.owner,
|
||||||
"subject": description,
|
"subject": description,
|
||||||
"description": description,
|
"description": description,
|
||||||
"starts_on": key["scheduled_date"] + " 10:00:00",
|
"starts_on": cstr(key["scheduled_date"]) + " 10:00:00",
|
||||||
"event_type": "Private",
|
"event_type": "Private",
|
||||||
"ref_type": self.doctype,
|
"ref_type": self.doctype,
|
||||||
"ref_name": self.name
|
"ref_name": self.name
|
||||||
|
|||||||
Reference in New Issue
Block a user