mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-04 00:50:18 +00:00
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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():
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user