restructured erpnext and deleted unwanted

This commit is contained in:
nabinhait
2011-07-01 13:34:41 +05:30
parent c1c54c9400
commit ec097975d0
1280 changed files with 54494 additions and 88652 deletions

View File

View File

@@ -0,0 +1,6 @@
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
def t1(self):
msgprint('role')

View File

@@ -0,0 +1,25 @@
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
def t1(self):
msgprint('role')

114
setup/doctype/role/role.txt Normal file
View File

@@ -0,0 +1,114 @@
# DocType, Role
[
# These values are common in all dictionaries
{
'creation': '2009-05-12 11:19:11',
'docstatus': 0,
'modified': '2010-12-28 17:02:39',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'_last_update': '1307624201',
'allow_copy': 0,
'allow_email': 0,
'allow_print': 0,
'autoname': 'field:role_name',
'colour': 'White:FFF',
'doctype': 'DocType',
'hide_heading': 0,
'hide_toolbar': 0,
'idx': 0,
'issingle': 0,
'istable': 0,
'module': 'Setup',
'name': '__common__',
'read_only': 0,
'section_style': 'Simple',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 1
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Role',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0
},
# These values are common for all DocPerm
{
'cancel': 0,
'create': 1,
'doctype': 'DocPerm',
'execute': 0,
'idx': 1,
'name': '__common__',
'parent': 'Role',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Administrator',
'submit': 0,
'write': 1
},
# DocType, Role
{
'doctype': 'DocType',
'name': 'Role'
},
# DocPerm
{
'doctype': 'DocPerm'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'module',
'fieldtype': 'Select',
'idx': 1,
'label': 'Module',
'oldfieldname': 'module',
'oldfieldtype': 'Select',
'options': 'link:Module Def',
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'role_name',
'fieldtype': 'Data',
'idx': 2,
'label': 'Role Name',
'oldfieldname': 'role_name',
'oldfieldtype': 'Data',
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'defaults',
'fieldtype': 'Table',
'hidden': 0,
'idx': 3,
'label': 'Defaults',
'oldfieldname': 'defaults',
'oldfieldtype': 'Table',
'options': 'DefaultValue',
'reqd': 0,
'search_index': 0
}
]