From 110ec0db6739d0e64004ca25cb8bae7cfb8789bd Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 16 Nov 2012 12:21:35 +0530 Subject: [PATCH] activity type fix and fixes in page titles --- projects/doctype/activity_type/__init__.py | 0 .../doctype/activity_type/activity_type.py | 22 ++++++ .../doctype/activity_type/activity_type.txt | 76 +++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 projects/doctype/activity_type/__init__.py create mode 100644 projects/doctype/activity_type/activity_type.py create mode 100644 projects/doctype/activity_type/activity_type.txt diff --git a/projects/doctype/activity_type/__init__.py b/projects/doctype/activity_type/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/doctype/activity_type/activity_type.py b/projects/doctype/activity_type/activity_type.py new file mode 100644 index 0000000000..7f48feb2eb --- /dev/null +++ b/projects/doctype/activity_type/activity_type.py @@ -0,0 +1,22 @@ +# ERPNext - web based ERP (http://erpnext.com) +# Copyright (C) 2012 Web Notes Technologies Pvt Ltd +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +from __future__ import unicode_literals +import webnotes + +class DocType: + def __init__(self, d, dl): + self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/projects/doctype/activity_type/activity_type.txt b/projects/doctype/activity_type/activity_type.txt new file mode 100644 index 0000000000..fa7f514a10 --- /dev/null +++ b/projects/doctype/activity_type/activity_type.txt @@ -0,0 +1,76 @@ +# DocType, Activity Type +[ + + # These values are common in all dictionaries + { + u'creation': '2012-07-03 13:30:51', + u'docstatus': 0, + u'modified': '2012-11-16 12:14:21', + u'modified_by': u'Administrator', + u'owner': u'Administrator' + }, + + # These values are common for all DocType + { + 'autoname': u'field:activity_type', + 'colour': u'White:FFF', + u'doctype': u'DocType', + 'document_type': u'Master', + 'in_dialog': 1, + 'module': u'Projects', + u'name': u'__common__', + 'section_style': u'Simple', + 'server_code_error': u' ', + 'version': 1 + }, + + # These values are common for all DocField + { + u'doctype': u'DocField', + 'fieldname': u'activity_type', + 'fieldtype': u'Data', + 'label': u'Activity Type', + u'name': u'__common__', + 'parent': u'Activity Type', + 'parentfield': u'fields', + 'parenttype': u'DocType', + 'permlevel': 0, + 'reqd': 1 + }, + + # These values are common for all DocPerm + { + 'create': 1, + u'doctype': u'DocPerm', + u'name': u'__common__', + 'parent': u'Activity Type', + 'parentfield': u'permissions', + 'parenttype': u'DocType', + 'permlevel': 0, + 'read': 1, + 'write': 1 + }, + + # DocType, Activity Type + { + u'doctype': u'DocType', + u'name': u'Activity Type' + }, + + # DocField + { + u'doctype': u'DocField' + }, + + # DocPerm + { + u'doctype': u'DocPerm', + 'role': u'System Manager' + }, + + # DocPerm + { + u'doctype': u'DocPerm', + 'role': u'Projects User' + } +] \ No newline at end of file