Merge branch 'responsive' of github.com:webnotes/erpnext into responsive

This commit is contained in:
Anand Doshi
2013-06-26 13:53:17 +05:30
57 changed files with 161853 additions and 227 deletions

View File

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

View 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, ""))

View 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"
}
]

View File

@@ -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."),