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

Conflicts:
	utilities/doctype/address/address.txt
This commit is contained in:
Anand Doshi
2013-07-02 11:43:54 +05:30
32 changed files with 210 additions and 121 deletions

View File

@@ -27,13 +27,13 @@ class DocType:
def autoname(self):
if not self.doc.address_title:
self.doc.address_title = self.doc.customer or self.doc.supplier or self.doc.sales_partner or self.doc.lead
self.doc.address_title = self.doc.customer \
or self.doc.supplier or self.doc.sales_partner or self.doc.lead
if self.doc.address_title:
self.doc.name = cstr(self.doc.address_title).strip() + "-" + cstr(self.doc.address_type).strip()
else:
webnotes.msgprint("""Address Title is mandatory.""", raise_exception=True)
webnotes.msgprint("""Address Title is mandatory.""" + self.doc.customer, raise_exception=True)
def validate(self):
self.validate_primary_address()
@@ -85,4 +85,4 @@ def get_website_args():
}),
"cint": cint
}

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:32",
"docstatus": 0,
"modified": "2013-07-01 17:24:17",
"modified": "2013-07-01 17:25:00",
"modified_by": "Administrator",
"owner": "Administrator"
},