added about us page and settings

This commit is contained in:
Rushabh Mehta
2012-12-27 16:50:24 +05:30
33 changed files with 571 additions and 316 deletions

View File

@@ -31,7 +31,8 @@ class DocType:
self.doc.name = self.doc.supplier + '-' + self.doc.address_type
elif self.doc.sales_partner:
self.doc.name = self.doc.sales_partner + '-' + self.doc.address_type
elif self.doc.address_title:
self.doc.address_title = self.doc.address_title + "-" + self.doc.address_type
def validate(self):
self.validate_for_whom()

View File

@@ -41,7 +41,7 @@ class DocType:
d = d.replace(x, '')
# mobile no validation for erpnext gateway
if webnotes.conn.webnotes.conn.get_value('SMS Settings', None, 'sms_gateway_url'):
if webnotes.conn.get_value('SMS Settings', None, 'sms_gateway_url'):
mob_no = d
else:
if not d.startswith("0") and len(d) == 10: