This commit is contained in:
Rushabh Mehta
2014-03-27 16:12:56 +05:30
parent 66d52b55c0
commit d2b34dc30c
214 changed files with 898 additions and 973 deletions

View File

@@ -7,10 +7,9 @@ import frappe
from frappe import msgprint, throw, _
from frappe.utils import cstr, cint
class DocType:
def __init__(self, doc, doclist=[]):
self.doc = doc
self.doclist = doclist
from frappe.model.document import Document
class Address(Document):
def autoname(self):
if not self.doc.address_title:

View File

@@ -7,10 +7,7 @@ from frappe.utils import cstr, extract_email_id
from erpnext.controllers.status_updater import StatusUpdater
class DocType(StatusUpdater):
def __init__(self, doc, doclist=[]):
self.doc = doc
self.doclist = doclist
class Contact(StatusUpdater):
def autoname(self):
# concat first and last name

View File

@@ -6,9 +6,9 @@
from __future__ import unicode_literals
import frappe
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
from frappe.model.document import Document
class Note(Document):
def autoname(self):
# replace forbidden characters

View File

@@ -6,6 +6,7 @@
from __future__ import unicode_literals
import frappe
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
from frappe.model.document import Document
class NoteUser(Document):
pass

View File

@@ -7,9 +7,9 @@ from __future__ import unicode_literals
import frappe
from frappe import _
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
from frappe.model.document import Document
class RenameTool(Document):
@frappe.whitelist()
def get_doctypes():

View File

@@ -10,10 +10,9 @@ from frappe.model.doc import Document
from frappe import msgprint, throw, _
from frappe.model.bean import getlist
class DocType:
def __init__(self, doc, doclist=[]):
self.doc = doc
self.doclist = doclist
from frappe.model.document import Document
class SmsControl(Document):
def validate_receiver_nos(self,receiver_list):
validated_receiver_list = []

View File

@@ -4,6 +4,7 @@
from __future__ import unicode_literals
import frappe
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
from frappe.model.document import Document
class SmsLog(Document):
pass