Item, Item Group and Partner Web Page generators moved from Shopping Cart to ERPNext

This commit is contained in:
Anand Doshi
2014-04-18 16:15:31 +05:30
parent 603e6e21b5
commit 5d591ebe83
24 changed files with 625 additions and 6 deletions

View File

@@ -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)