[redesign] website routing system

This commit is contained in:
Rushabh Mehta 2016-06-23 18:25:50 +05:30
parent 2effad33d0
commit a334062b03
154 changed files with 768 additions and 802 deletions

View File

@ -19,7 +19,7 @@ def get_list_context(context=None):
}
def get_transaction_list(doctype, txt=None, filters=None, limit_start=0, limit_page_length=20):
from frappe.templates.pages.list import get_list
from frappe.www.list import get_list
user = frappe.session.user
key = None

View File

@ -48,13 +48,16 @@ class Opportunity(TransactionBase):
if not lead_name:
sender_name = get_fullname(self.contact_email)
if sender_name == self.contact_email:
sender_name = None
account = ''
email_name = self.contact_email[0:self.contact_email.index('@')]
email_split = email_name.split('.')
for s in email_split:
account = account + s.capitalize() + ' '
sender_name = None
account = _('Unknown')
if self.contact_email.index('@'):
email_name = self.contact_email[0:self.contact_email.index('@')]
email_split = email_name.split('.')
for s in email_split:
account = account + s.capitalize() + ' '
lead = frappe.get_doc({
"doctype": "Lead",

0
erpnext/docs/__init__.py Normal file
View File

View File

View File

View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More