mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 14:41:53 +00:00
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -13,6 +13,7 @@ from frappe.model.document import Document
|
|||||||
from frappe.share import add_docshare
|
from frappe.share import add_docshare
|
||||||
from frappe.utils import add_to_date, cint, date_diff, get_datetime, get_url, getdate, now, now_datetime
|
from frappe.utils import add_to_date, cint, date_diff, get_datetime, get_url, getdate, now, now_datetime
|
||||||
from frappe.utils.data import sha256_hash
|
from frappe.utils.data import sha256_hash
|
||||||
|
from frappe.utils.html_utils import escape_html
|
||||||
|
|
||||||
from erpnext.setup.doctype.holiday_list.holiday_list import is_holiday
|
from erpnext.setup.doctype.holiday_list.holiday_list import is_holiday
|
||||||
|
|
||||||
@@ -269,7 +270,11 @@ class Appointment(Document):
|
|||||||
if self.customer_details:
|
if self.customer_details:
|
||||||
lead.append(
|
lead.append(
|
||||||
"notes",
|
"notes",
|
||||||
{"note": self.customer_details, "added_by": frappe.session.user, "added_on": now()},
|
{
|
||||||
|
"note": escape_html(self.customer_details),
|
||||||
|
"added_by": frappe.session.user,
|
||||||
|
"added_on": now(),
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
self.party = lead.insert(ignore_permissions=True).name
|
self.party = lead.insert(ignore_permissions=True).name
|
||||||
|
|||||||
Reference in New Issue
Block a user