mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
Merge branch 'responsive' of github.com:webnotes/erpnext into responsive
This commit is contained in:
@@ -64,7 +64,7 @@ class SalesMailbox(POP3Mailbox):
|
||||
if mail.from_email == self.settings.email_id:
|
||||
return
|
||||
|
||||
add_sales_communication(mail.mail.get("subject", "[No Subject]"), mail.content, mail.from_email,
|
||||
add_sales_communication(mail.subject, mail.content, mail.from_email,
|
||||
mail.from_real_name, mail=mail, date=mail.date)
|
||||
|
||||
def get_leads():
|
||||
|
||||
0
selling/doctype/selling_settings/__init__.py
Normal file
0
selling/doctype/selling_settings/__init__.py
Normal file
12
selling/doctype/selling_settings/selling_settings.py
Normal file
12
selling/doctype/selling_settings/selling_settings.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
|
||||
class DocType:
|
||||
def __init__(self, d, dl):
|
||||
self.doc, self.doclist = d, dl
|
||||
|
||||
def validate(self):
|
||||
for key in ["cust_master_name", "customer_group", "territory"]:
|
||||
webnotes.conn.set_default(key, self.doc.fields.get(key, ""))
|
||||
93
selling/doctype/selling_settings/selling_settings.txt
Normal file
93
selling/doctype/selling_settings/selling_settings.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
[
|
||||
{
|
||||
"creation": "2013-06-25 10:25:16",
|
||||
"docstatus": 0,
|
||||
"modified": "2013-06-25 10:52:35",
|
||||
"modified_by": "Administrator",
|
||||
"owner": "Administrator"
|
||||
},
|
||||
{
|
||||
"description": "Settings for Selling Module",
|
||||
"doctype": "DocType",
|
||||
"document_type": "Other",
|
||||
"issingle": 1,
|
||||
"module": "Selling",
|
||||
"name": "__common__"
|
||||
},
|
||||
{
|
||||
"doctype": "DocField",
|
||||
"name": "__common__",
|
||||
"parent": "Selling Settings",
|
||||
"parentfield": "fields",
|
||||
"parenttype": "DocType",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"create": 1,
|
||||
"doctype": "DocPerm",
|
||||
"name": "__common__",
|
||||
"parent": "Selling Settings",
|
||||
"parentfield": "permissions",
|
||||
"parenttype": "DocType",
|
||||
"permlevel": 0,
|
||||
"read": 1,
|
||||
"role": "System Manager",
|
||||
"write": 1
|
||||
},
|
||||
{
|
||||
"doctype": "DocType",
|
||||
"name": "Selling Settings"
|
||||
},
|
||||
{
|
||||
"doctype": "DocField",
|
||||
"fieldname": "cust_master_name",
|
||||
"fieldtype": "Select",
|
||||
"label": "Customer Naming By",
|
||||
"options": "Customer Name\nNaming Series"
|
||||
},
|
||||
{
|
||||
"description": "<a href=\"#Sales Browser/Customer Group\">Manage Customer Groups</a>",
|
||||
"doctype": "DocField",
|
||||
"fieldname": "customer_group",
|
||||
"fieldtype": "Link",
|
||||
"label": "Default Customer Group",
|
||||
"options": "Customer Group"
|
||||
},
|
||||
{
|
||||
"description": "<a href=\"#Sales Browser/Territory\">Territory</a>",
|
||||
"doctype": "DocField",
|
||||
"fieldname": "territory",
|
||||
"fieldtype": "Link",
|
||||
"label": "Default Territory",
|
||||
"options": "Territory"
|
||||
},
|
||||
{
|
||||
"doctype": "DocField",
|
||||
"fieldname": "price_list_name",
|
||||
"fieldtype": "Link",
|
||||
"label": "Default Price List",
|
||||
"options": "Price List"
|
||||
},
|
||||
{
|
||||
"doctype": "DocField",
|
||||
"fieldname": "column_break_5",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"doctype": "DocField",
|
||||
"fieldname": "so_required",
|
||||
"fieldtype": "Select",
|
||||
"label": "Sales Order Required",
|
||||
"options": "No\nYes"
|
||||
},
|
||||
{
|
||||
"doctype": "DocField",
|
||||
"fieldname": "dn_required",
|
||||
"fieldtype": "Select",
|
||||
"label": "Delivery Note Required",
|
||||
"options": "No\nYes"
|
||||
},
|
||||
{
|
||||
"doctype": "DocPerm"
|
||||
}
|
||||
]
|
||||
@@ -58,6 +58,12 @@ wn.module_page["Selling"] = [
|
||||
title: wn._("Setup"),
|
||||
icon: "icon-cog",
|
||||
items: [
|
||||
{
|
||||
"label": wn._("Selling Settings"),
|
||||
"route": "Form/Selling Settings",
|
||||
"doctype":"Selling Settings",
|
||||
"description": "Settings for Selling Module"
|
||||
},
|
||||
{
|
||||
label: wn._("Sales Taxes and Charges Master"),
|
||||
description: wn._("Sales taxes template."),
|
||||
|
||||
Reference in New Issue
Block a user