[redesign] website routing system
This commit is contained in:
parent
2effad33d0
commit
a334062b03
@ -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
|
||||
|
||||
|
@ -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
0
erpnext/docs/__init__.py
Normal file
0
erpnext/docs/assets/__init__.py
Normal file
0
erpnext/docs/assets/__init__.py
Normal file
0
erpnext/docs/assets/img/__init__.py
Normal file
0
erpnext/docs/assets/img/__init__.py
Normal file
0
erpnext/docs/assets/img/accounts/__init__.py
Normal file
0
erpnext/docs/assets/img/accounts/__init__.py
Normal file
0
erpnext/docs/assets/img/articles/__init__.py
Normal file
0
erpnext/docs/assets/img/articles/__init__.py
Normal file
0
erpnext/docs/assets/img/buying/__init__.py
Normal file
0
erpnext/docs/assets/img/buying/__init__.py
Normal file
0
erpnext/docs/assets/img/crm/__init__.py
Normal file
0
erpnext/docs/assets/img/crm/__init__.py
Normal file
0
erpnext/docs/assets/img/customize/__init__.py
Normal file
0
erpnext/docs/assets/img/customize/__init__.py
Normal file
0
erpnext/docs/assets/img/human-resources/__init__.py
Normal file
0
erpnext/docs/assets/img/human-resources/__init__.py
Normal file
0
erpnext/docs/assets/img/manufacturing/__init__.py
Normal file
0
erpnext/docs/assets/img/manufacturing/__init__.py
Normal file
0
erpnext/docs/assets/img/pos-setting/__init__.py
Normal file
0
erpnext/docs/assets/img/pos-setting/__init__.py
Normal file
0
erpnext/docs/assets/img/price-list/__init__.py
Normal file
0
erpnext/docs/assets/img/price-list/__init__.py
Normal file
0
erpnext/docs/assets/img/project/__init__.py
Normal file
0
erpnext/docs/assets/img/project/__init__.py
Normal file
0
erpnext/docs/assets/img/selling/__init__.py
Normal file
0
erpnext/docs/assets/img/selling/__init__.py
Normal file
0
erpnext/docs/assets/img/setup-wizard/__init__.py
Normal file
0
erpnext/docs/assets/img/setup-wizard/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/customize/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/customize/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/data/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/data/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/email/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/email/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/print/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/print/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/settings/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/settings/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/users/__init__.py
Normal file
0
erpnext/docs/assets/img/setup/users/__init__.py
Normal file
0
erpnext/docs/assets/img/stock/__init__.py
Normal file
0
erpnext/docs/assets/img/stock/__init__.py
Normal file
0
erpnext/docs/assets/img/support/__init__.py
Normal file
0
erpnext/docs/assets/img/support/__init__.py
Normal file
0
erpnext/docs/assets/img/taxes/__init__.py
Normal file
0
erpnext/docs/assets/img/taxes/__init__.py
Normal file
0
erpnext/docs/assets/img/videos/__init__.py
Normal file
0
erpnext/docs/assets/img/videos/__init__.py
Normal file
0
erpnext/docs/assets/img/website/__init__.py
Normal file
0
erpnext/docs/assets/img/website/__init__.py
Normal file
0
erpnext/docs/assets/old_images/__init__.py
Normal file
0
erpnext/docs/assets/old_images/__init__.py
Normal file
0
erpnext/docs/assets/old_images/erpnext/__init__.py
Normal file
0
erpnext/docs/assets/old_images/erpnext/__init__.py
Normal file
0
erpnext/docs/user/__init__.py
Normal file
0
erpnext/docs/user/__init__.py
Normal file
0
erpnext/docs/user/manual/__init__.py
Normal file
0
erpnext/docs/user/manual/__init__.py
Normal file
0
erpnext/docs/user/manual/de/Beispiel/__init__.py
Normal file
0
erpnext/docs/user/manual/de/Beispiel/__init__.py
Normal file
0
erpnext/docs/user/manual/de/CRM/__init__.py
Normal file
0
erpnext/docs/user/manual/de/CRM/__init__.py
Normal file
0
erpnext/docs/user/manual/de/CRM/setup/__init__.py
Normal file
0
erpnext/docs/user/manual/de/CRM/setup/__init__.py
Normal file
0
erpnext/docs/user/manual/de/__init__.py
Normal file
0
erpnext/docs/user/manual/de/__init__.py
Normal file
0
erpnext/docs/user/manual/de/accounts/__init__.py
Normal file
0
erpnext/docs/user/manual/de/accounts/__init__.py
Normal file
0
erpnext/docs/user/manual/de/buying/__init__.py
Normal file
0
erpnext/docs/user/manual/de/buying/__init__.py
Normal file
0
erpnext/docs/user/manual/de/projects/__init__.py
Normal file
0
erpnext/docs/user/manual/de/projects/__init__.py
Normal file
0
erpnext/docs/user/manual/de/selling/__init__.py
Normal file
0
erpnext/docs/user/manual/de/selling/__init__.py
Normal file
0
erpnext/docs/user/manual/de/setting-up/__init__.py
Normal file
0
erpnext/docs/user/manual/de/setting-up/__init__.py
Normal file
0
erpnext/docs/user/manual/de/stock/__init__.py
Normal file
0
erpnext/docs/user/manual/de/stock/__init__.py
Normal file
0
erpnext/docs/user/manual/de/stock/setup/__init__.py
Normal file
0
erpnext/docs/user/manual/de/stock/setup/__init__.py
Normal file
0
erpnext/docs/user/manual/de/stock/tools/__init__.py
Normal file
0
erpnext/docs/user/manual/de/stock/tools/__init__.py
Normal file
0
erpnext/docs/user/manual/de/support/__init__.py
Normal file
0
erpnext/docs/user/manual/de/support/__init__.py
Normal file
0
erpnext/docs/user/manual/de/website/__init__.py
Normal file
0
erpnext/docs/user/manual/de/website/__init__.py
Normal file
0
erpnext/docs/user/manual/en/CRM/__init__.py
Normal file
0
erpnext/docs/user/manual/en/CRM/__init__.py
Normal file
0
erpnext/docs/user/manual/en/CRM/setup/__init__.py
Normal file
0
erpnext/docs/user/manual/en/CRM/setup/__init__.py
Normal file
0
erpnext/docs/user/manual/en/__init__.py
Normal file
0
erpnext/docs/user/manual/en/__init__.py
Normal file
0
erpnext/docs/user/manual/en/accounts/__init__.py
Normal file
0
erpnext/docs/user/manual/en/accounts/__init__.py
Normal file
0
erpnext/docs/user/manual/en/buying/__init__.py
Normal file
0
erpnext/docs/user/manual/en/buying/__init__.py
Normal file
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user