mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
Sourced wnframework-modules from Google Code as erpnext
This commit is contained in:
0
roles/doctype/__init__.py
Normal file
0
roles/doctype/__init__.py
Normal file
0
roles/doctype/role/__init__.py
Normal file
0
roles/doctype/role/__init__.py
Normal file
6
roles/doctype/role/role.js
Normal file
6
roles/doctype/role/role.js
Normal file
@@ -0,0 +1,6 @@
|
||||
class DocType:
|
||||
def __init__(self, d, dl):
|
||||
self.doc, self.doclist = d, dl
|
||||
|
||||
def t1(self):
|
||||
msgprint('role')
|
||||
25
roles/doctype/role/role.py
Normal file
25
roles/doctype/role/role.py
Normal 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')
|
||||
1
roles/doctype/role/role.txt
Normal file
1
roles/doctype/role/role.txt
Normal file
@@ -0,0 +1 @@
|
||||
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2009-03-12 12:01:55', 'search_fields': '', 'module': 'Roles', 'doctype': 'DocType', 'change_log': None, 'print_outline': '', 'owner': 'Administrator', 'in_dialog': None, 'in_create': None, 'read_only': 0, 'allow_email': 0, 'dt_template': None, 'hide_heading': 0, 'issingle': 0, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 7, 'menu_index': None, 'docstatus': 0, 'allow_copy': 0, 'istable': 0, 'description': '', 'parent': '', 'server_code': '', 'allow_trash': None, 'allow_print': 0, 'autoname': 'field:role_name', 'client_script_core': '', 'client_string': None, 'use_template': None, 'modified_by': 'Guest', 'document_type': None, 'name': 'Role', 'idx': 0, 'hide_toolbar': 0, 'colour': 'White:FFF', 'client_script': '', 'modified': '2010-09-20 14:06:57', 'server_code_error': ' ', 'name_case': '', 'parenttype': '', 'read_only_onload': None, 'server_code_core': '', 'server_code_compiled': None, 'parent_node': None, 'parentfield': ''}, {'cancel': 0, 'amend': None, 'execute': 0, 'modified_by': 'Guest', 'name': 'PERM00014', 'parent': 'Role', 'read': 1, 'create': 1, 'creation': '2009-03-12 12:01:57', 'modified': '2010-04-08 12:05:09', 'submit': 0, 'doctype': 'DocPerm', 'write': 1, 'idx': 1, 'parenttype': 'DocType', 'role': 'Administrator', 'owner': 'Administrator', 'docstatus': 0, 'permlevel': 0, 'match': '', 'parentfield': 'permissions'}, {'no_copy': None, 'oldfieldtype': 'Select', 'creation': '2009-03-17 12:09:47', 'doctype': 'DocField', 'oldfieldname': 'module', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'Guest', 'label': 'Module', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Role', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01437', 'idx': 1, 'default': 'Roles', 'colour': None, 'modified': '2010-04-08 12:05:09', 'parenttype': 'DocType', 'fieldname': 'module', 'fieldtype': 'Select', 'options': 'link:Module Def', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Data', 'creation': '2009-03-12 12:01:56', 'doctype': 'DocField', 'oldfieldname': 'role_name', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'Guest', 'label': 'Role Name', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Role', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00194', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-04-08 12:05:09', 'parenttype': 'DocType', 'fieldname': 'role_name', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Table', 'creation': '2009-03-12 12:01:56', 'doctype': 'DocField', 'oldfieldname': 'defaults', 'owner': 'Administrator', 'reqd': 0, 'in_filter': 0, 'print_hide': None, 'modified_by': 'Guest', 'label': 'Defaults', 'width': '', 'trigger': '', 'depends_on': None, 'docstatus': 0, 'hidden': 0, 'permlevel': 0, 'description': None, 'parent': 'Role', 'search_index': 0, 'allow_on_submit': None, 'icon': None, 'name': 'FL00195', 'idx': 3, 'default': '', 'colour': '', 'modified': '2010-04-08 12:05:09', 'parenttype': 'DocType', 'fieldname': 'defaults', 'fieldtype': 'Table', 'options': 'DefaultValue', 'report_hide': None, 'parentfield': 'fields'}]
|
||||
Reference in New Issue
Block a user