mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
Item, Item Group and Partner Web Page generators moved from Shopping Cart to ERPNext
This commit is contained in:
@@ -7,10 +7,10 @@ import frappe
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
def send_message(subject="Website Query", message="", sender="", status="Open"):
|
||||
from frappe.templates.pages.contact import send_message as website_send_message
|
||||
|
||||
|
||||
if not website_send_message(subject, message, sender):
|
||||
return
|
||||
|
||||
|
||||
if subject=="Support":
|
||||
# create support ticket
|
||||
from erpnext.support.doctype.support_ticket.get_support_mails import add_support_communication
|
||||
@@ -18,6 +18,6 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
|
||||
else:
|
||||
# make lead / communication
|
||||
from erpnext.selling.doctype.lead.get_leads import add_sales_communication
|
||||
add_sales_communication(subject or "Website Query", message, sender, sender,
|
||||
add_sales_communication(subject or "Website Query", message, sender, sender,
|
||||
mail=None, status=status)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user