Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Rushabh Mehta
2012-11-30 12:49:11 +01:00
36 changed files with 87 additions and 88 deletions

View File

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