merged with slow branch

This commit is contained in:
Nabin Hait
2013-07-18 12:28:09 +05:30
10 changed files with 60 additions and 23 deletions

View File

@@ -8,5 +8,5 @@ class DocType:
self.doc, self.doclist = d, dl
def validate(self):
for key in ["cust_master_name", "customer_group", "territory"]:
for key in ["cust_master_name", "customer_group", "territory", "allow_same_sales_rate"]:
webnotes.conn.set_default(key, self.doc.fields.get(key, ""))

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-06-25 10:25:16",
"docstatus": 0,
"modified": "2013-07-05 14:54:47",
"modified": "2013-07-18 12:03:39",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -88,6 +88,12 @@
"label": "Delivery Note Required",
"options": "No\nYes"
},
{
"doctype": "DocField",
"fieldname": "maintain_same_sales_rate",
"fieldtype": "Check",
"label": "Maintain Same Rate Throughout Sales Cycle"
},
{
"doctype": "DocPerm"
}