diff --git a/frappe/core/doctype/workflow/workflow.json b/frappe/core/doctype/workflow/workflow.json
deleted file mode 100644
index 741a613d43..0000000000
--- a/frappe/core/doctype/workflow/workflow.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "autoname": "field:workflow_name",
- "creation": "2012-12-28 10:49:55.000000",
- "description": "Defines workflow states and rules for a document.",
- "docstatus": 0,
- "doctype": "DocType",
- "document_type": "Transaction",
- "fields": [
- {
- "fieldname": "workflow_name",
- "fieldtype": "Data",
- "label": "Workflow Name",
- "permlevel": 0,
- "read_only": 0,
- "reqd": 1
- },
- {
- "description": "DocType on which this Workflow is applicable.",
- "fieldname": "document_type",
- "fieldtype": "Link",
- "label": "Document Type",
- "options": "DocType",
- "permlevel": 0,
- "reqd": 1
- },
- {
- "description": "If checked, all other workflows become inactive.",
- "fieldname": "is_active",
- "fieldtype": "Check",
- "label": "Is Active",
- "permlevel": 0
- },
- {
- "description": "Different \"States\" this document can exist in. Like \"Open\", \"Pending Approval\" etc.",
- "fieldname": "states",
- "fieldtype": "Section Break",
- "label": "States",
- "permlevel": 0
- },
- {
- "description": "All possible Workflow States and roles of the workflow.
Docstatus Options: 0 is\"Saved\", 1 is \"Submitted\" and 2 is \"Cancelled\"",
- "fieldname": "workflow_document_states",
- "fieldtype": "Table",
- "label": "Workflow Document States",
- "options": "Workflow Document State",
- "permlevel": 0,
- "reqd": 1
- },
- {
- "description": "Rules for how states are transitions, like next state and which role is allowed to change state etc.",
- "fieldname": "transition_rules",
- "fieldtype": "Section Break",
- "label": "Transition Rules",
- "permlevel": 0
- },
- {
- "description": "Rules defining transition of state in the workflow.",
- "fieldname": "workflow_transitions",
- "fieldtype": "Table",
- "label": "Workflow Transitions",
- "options": "Workflow Transition",
- "permlevel": 0,
- "reqd": 1
- },
- {
- "default": "workflow_state",
- "description": "Field that represents the Workflow State of the transaction (if field is not present, a new hidden Custom Field will be created)",
- "fieldname": "workflow_state_field",
- "fieldtype": "Data",
- "label": "Workflow State Field",
- "permlevel": 0
- }
- ],
- "icon": "icon-random",
- "idx": 1,
- "modified": "2014-01-20 17:49:35.000000",
- "modified_by": "Administrator",
- "module": "Core",
- "name": "Workflow",
- "owner": "Administrator",
- "permissions": [
- {
- "cancel": 1,
- "create": 1,
- "delete": 1,
- "email": 1,
- "permlevel": 0,
- "print": 1,
- "read": 1,
- "role": "System Manager",
- "write": 1
- }
- ]
-}
\ No newline at end of file
diff --git a/frappe/core/doctype/workflow_action/workflow_action.json b/frappe/core/doctype/workflow_action/workflow_action.json
deleted file mode 100644
index 958555f541..0000000000
--- a/frappe/core/doctype/workflow_action/workflow_action.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "autoname": "field:workflow_action_name",
- "creation": "2012-12-28 10:49:56.000000",
- "description": "Workflow Action Master",
- "docstatus": 0,
- "doctype": "DocType",
- "fields": [
- {
- "fieldname": "workflow_action_name",
- "fieldtype": "Data",
- "label": "Workflow Action Name",
- "permlevel": 0,
- "reqd": 1
- }
- ],
- "icon": "icon-flag",
- "idx": 1,
- "modified": "2014-01-20 17:49:35.000000",
- "modified_by": "Administrator",
- "module": "Core",
- "name": "Workflow Action",
- "owner": "Administrator",
- "permissions": [
- {
- "cancel": 1,
- "create": 1,
- "delete": 1,
- "email": 1,
- "permlevel": 0,
- "print": 1,
- "read": 1,
- "role": "System Manager",
- "write": 1
- }
- ]
-}
\ No newline at end of file
diff --git a/frappe/core/doctype/workflow_document_state/workflow_document_state.json b/frappe/core/doctype/workflow_document_state/workflow_document_state.json
deleted file mode 100644
index dfe287074d..0000000000
--- a/frappe/core/doctype/workflow_document_state/workflow_document_state.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "allow_import": 1,
- "creation": "2013-02-22 01:27:36",
- "description": "Represents the states allowed in one document and role assigned to change the state.",
- "docstatus": 0,
- "doctype": "DocType",
- "document_type": "Master",
- "fields": [
- {
- "fieldname": "state",
- "fieldtype": "Link",
- "in_list_view": 1,
- "label": "State",
- "options": "Workflow State",
- "permlevel": 0,
- "print_width": "160px",
- "reqd": 1,
- "width": "160px"
- },
- {
- "description": "0 - Draft; 1 - Submitted; 2 - Cancelled",
- "fieldname": "doc_status",
- "fieldtype": "Select",
- "in_list_view": 1,
- "label": "Doc Status",
- "options": "0\n1\n2",
- "permlevel": 0,
- "print_width": "80px",
- "width": "80px"
- },
- {
- "fieldname": "update_field",
- "fieldtype": "Select",
- "in_list_view": 1,
- "label": "Update Field",
- "permlevel": 0
- },
- {
- "fieldname": "update_value",
- "fieldtype": "Data",
- "in_list_view": 1,
- "label": "Update Value",
- "permlevel": 0
- },
- {
- "fieldname": "allow_edit",
- "fieldtype": "Link",
- "in_list_view": 1,
- "label": "Only Allow Edit For",
- "options": "Role",
- "permlevel": 0,
- "print_width": "160px",
- "reqd": 1,
- "width": "160px"
- },
- {
- "fieldname": "message",
- "fieldtype": "Text",
- "in_list_view": 1,
- "label": "Message",
- "permlevel": 0,
- "print_width": "160px",
- "reqd": 0,
- "width": "160px"
- }
- ],
- "idx": 1,
- "istable": 1,
- "modified": "2014-05-27 06:35:01.070157",
- "modified_by": "Administrator",
- "module": "Core",
- "name": "Workflow Document State",
- "owner": "Administrator",
- "permissions": []
-}
\ No newline at end of file
diff --git a/frappe/core/doctype/workflow_transition/workflow_transition.json b/frappe/core/doctype/workflow_transition/workflow_transition.json
deleted file mode 100644
index 9b62473bb5..0000000000
--- a/frappe/core/doctype/workflow_transition/workflow_transition.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "creation": "2013-02-22 01:27:36.000000",
- "description": "Defines actions on states and the next step and allowed roles.",
- "docstatus": 0,
- "doctype": "DocType",
- "fields": [
- {
- "fieldname": "state",
- "fieldtype": "Link",
- "in_list_view": 1,
- "label": "State",
- "options": "Workflow State",
- "permlevel": 0,
- "print_width": "200px",
- "reqd": 1,
- "width": "200px"
- },
- {
- "fieldname": "action",
- "fieldtype": "Link",
- "in_list_view": 1,
- "label": "Action",
- "options": "Workflow Action",
- "permlevel": 0,
- "print_width": "200px",
- "reqd": 1,
- "width": "200px"
- },
- {
- "fieldname": "next_state",
- "fieldtype": "Link",
- "in_list_view": 1,
- "label": "Next State",
- "options": "Workflow State",
- "permlevel": 0,
- "print_width": "200px",
- "reqd": 1,
- "width": "200px"
- },
- {
- "fieldname": "allowed",
- "fieldtype": "Link",
- "in_list_view": 1,
- "label": "Allowed",
- "options": "Role",
- "permlevel": 0,
- "print_width": "200px",
- "reqd": 1,
- "width": "200px"
- }
- ],
- "idx": 1,
- "istable": 1,
- "modified": "2013-12-20 19:21:55.000000",
- "modified_by": "Administrator",
- "module": "Core",
- "name": "Workflow Transition",
- "owner": "Administrator"
-}
\ No newline at end of file
diff --git a/frappe/modules.txt b/frappe/modules.txt
index 8fe4b686dd..10dcba3619 100644
--- a/frappe/modules.txt
+++ b/frappe/modules.txt
@@ -1,2 +1,3 @@
Core
Website
+Workflow
\ No newline at end of file
diff --git a/frappe/workflow/__init__.py b/frappe/workflow/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/workflow/doctype/__init__.py b/frappe/workflow/doctype/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frappe/core/doctype/workflow/README.md b/frappe/workflow/doctype/workflow/README.md
similarity index 100%
rename from frappe/core/doctype/workflow/README.md
rename to frappe/workflow/doctype/workflow/README.md
diff --git a/frappe/core/doctype/workflow/__init__.py b/frappe/workflow/doctype/workflow/__init__.py
similarity index 100%
rename from frappe/core/doctype/workflow/__init__.py
rename to frappe/workflow/doctype/workflow/__init__.py
diff --git a/frappe/core/doctype/workflow/workflow.js b/frappe/workflow/doctype/workflow/workflow.js
similarity index 100%
rename from frappe/core/doctype/workflow/workflow.js
rename to frappe/workflow/doctype/workflow/workflow.js
diff --git a/frappe/workflow/doctype/workflow/workflow.json b/frappe/workflow/doctype/workflow/workflow.json
new file mode 100644
index 0000000000..69eba829ee
--- /dev/null
+++ b/frappe/workflow/doctype/workflow/workflow.json
@@ -0,0 +1,94 @@
+{
+ "autoname": "field:workflow_name",
+ "creation": "2012-12-28 10:49:55.000000",
+ "description": "Defines workflow states and rules for a document.",
+ "docstatus": 0,
+ "doctype": "DocType",
+ "document_type": "Transaction",
+ "fields": [
+ {
+ "fieldname": "workflow_name",
+ "fieldtype": "Data",
+ "label": "Workflow Name",
+ "permlevel": 0,
+ "read_only": 0,
+ "reqd": 1
+ },
+ {
+ "description": "DocType on which this Workflow is applicable.",
+ "fieldname": "document_type",
+ "fieldtype": "Link",
+ "label": "Document Type",
+ "options": "DocType",
+ "permlevel": 0,
+ "reqd": 1
+ },
+ {
+ "description": "If checked, all other workflows become inactive.",
+ "fieldname": "is_active",
+ "fieldtype": "Check",
+ "label": "Is Active",
+ "permlevel": 0
+ },
+ {
+ "description": "Different \"States\" this document can exist in. Like \"Open\", \"Pending Approval\" etc.",
+ "fieldname": "states",
+ "fieldtype": "Section Break",
+ "label": "States",
+ "permlevel": 0
+ },
+ {
+ "description": "All possible Workflow States and roles of the workflow.
Docstatus Options: 0 is\"Saved\", 1 is \"Submitted\" and 2 is \"Cancelled\"",
+ "fieldname": "workflow_document_states",
+ "fieldtype": "Table",
+ "label": "Workflow Document States",
+ "options": "Workflow Document State",
+ "permlevel": 0,
+ "reqd": 1
+ },
+ {
+ "description": "Rules for how states are transitions, like next state and which role is allowed to change state etc.",
+ "fieldname": "transition_rules",
+ "fieldtype": "Section Break",
+ "label": "Transition Rules",
+ "permlevel": 0
+ },
+ {
+ "description": "Rules defining transition of state in the workflow.",
+ "fieldname": "workflow_transitions",
+ "fieldtype": "Table",
+ "label": "Workflow Transitions",
+ "options": "Workflow Transition",
+ "permlevel": 0,
+ "reqd": 1
+ },
+ {
+ "default": "workflow_state",
+ "description": "Field that represents the Workflow State of the transaction (if field is not present, a new hidden Custom Field will be created)",
+ "fieldname": "workflow_state_field",
+ "fieldtype": "Data",
+ "label": "Workflow State Field",
+ "permlevel": 0
+ }
+ ],
+ "icon": "icon-random",
+ "idx": 1,
+ "modified": "2014-01-20 17:49:35.000001",
+ "modified_by": "Administrator",
+ "module": "Workflow",
+ "name": "Workflow",
+ "owner": "Administrator",
+ "permissions": [
+ {
+ "cancel": 1,
+ "create": 1,
+ "delete": 1,
+ "email": 1,
+ "permlevel": 0,
+ "print": 1,
+ "read": 1,
+ "role": "System Manager",
+ "write": 1
+ }
+ ]
+}
diff --git a/frappe/core/doctype/workflow/workflow.py b/frappe/workflow/doctype/workflow/workflow.py
similarity index 100%
rename from frappe/core/doctype/workflow/workflow.py
rename to frappe/workflow/doctype/workflow/workflow.py
diff --git a/frappe/core/doctype/workflow_action/README.md b/frappe/workflow/doctype/workflow_action/README.md
similarity index 100%
rename from frappe/core/doctype/workflow_action/README.md
rename to frappe/workflow/doctype/workflow_action/README.md
diff --git a/frappe/core/doctype/workflow_action/__init__.py b/frappe/workflow/doctype/workflow_action/__init__.py
similarity index 100%
rename from frappe/core/doctype/workflow_action/__init__.py
rename to frappe/workflow/doctype/workflow_action/__init__.py
diff --git a/frappe/workflow/doctype/workflow_action/workflow_action.json b/frappe/workflow/doctype/workflow_action/workflow_action.json
new file mode 100644
index 0000000000..79656c4a8e
--- /dev/null
+++ b/frappe/workflow/doctype/workflow_action/workflow_action.json
@@ -0,0 +1,36 @@
+{
+ "autoname": "field:workflow_action_name",
+ "creation": "2012-12-28 10:49:56.000000",
+ "description": "Workflow Action Master",
+ "docstatus": 0,
+ "doctype": "DocType",
+ "fields": [
+ {
+ "fieldname": "workflow_action_name",
+ "fieldtype": "Data",
+ "label": "Workflow Action Name",
+ "permlevel": 0,
+ "reqd": 1
+ }
+ ],
+ "icon": "icon-flag",
+ "idx": 1,
+ "modified": "2014-01-20 17:49:35.000001",
+ "modified_by": "Administrator",
+ "module": "Workflow",
+ "name": "Workflow Action",
+ "owner": "Administrator",
+ "permissions": [
+ {
+ "cancel": 1,
+ "create": 1,
+ "delete": 1,
+ "email": 1,
+ "permlevel": 0,
+ "print": 1,
+ "read": 1,
+ "role": "System Manager",
+ "write": 1
+ }
+ ]
+}
diff --git a/frappe/core/doctype/workflow_action/workflow_action.py b/frappe/workflow/doctype/workflow_action/workflow_action.py
similarity index 100%
rename from frappe/core/doctype/workflow_action/workflow_action.py
rename to frappe/workflow/doctype/workflow_action/workflow_action.py
diff --git a/frappe/core/doctype/workflow_document_state/README.md b/frappe/workflow/doctype/workflow_document_state/README.md
similarity index 100%
rename from frappe/core/doctype/workflow_document_state/README.md
rename to frappe/workflow/doctype/workflow_document_state/README.md
diff --git a/frappe/core/doctype/workflow_document_state/__init__.py b/frappe/workflow/doctype/workflow_document_state/__init__.py
similarity index 100%
rename from frappe/core/doctype/workflow_document_state/__init__.py
rename to frappe/workflow/doctype/workflow_document_state/__init__.py
diff --git a/frappe/workflow/doctype/workflow_document_state/workflow_document_state.json b/frappe/workflow/doctype/workflow_document_state/workflow_document_state.json
new file mode 100644
index 0000000000..cebb74de56
--- /dev/null
+++ b/frappe/workflow/doctype/workflow_document_state/workflow_document_state.json
@@ -0,0 +1,75 @@
+{
+ "allow_import": 1,
+ "creation": "2013-02-22 01:27:36",
+ "description": "Represents the states allowed in one document and role assigned to change the state.",
+ "docstatus": 0,
+ "doctype": "DocType",
+ "document_type": "Master",
+ "fields": [
+ {
+ "fieldname": "state",
+ "fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "State",
+ "options": "Workflow State",
+ "permlevel": 0,
+ "print_width": "160px",
+ "reqd": 1,
+ "width": "160px"
+ },
+ {
+ "description": "0 - Draft; 1 - Submitted; 2 - Cancelled",
+ "fieldname": "doc_status",
+ "fieldtype": "Select",
+ "in_list_view": 1,
+ "label": "Doc Status",
+ "options": "0\n1\n2",
+ "permlevel": 0,
+ "print_width": "80px",
+ "width": "80px"
+ },
+ {
+ "fieldname": "update_field",
+ "fieldtype": "Select",
+ "in_list_view": 1,
+ "label": "Update Field",
+ "permlevel": 0
+ },
+ {
+ "fieldname": "update_value",
+ "fieldtype": "Data",
+ "in_list_view": 1,
+ "label": "Update Value",
+ "permlevel": 0
+ },
+ {
+ "fieldname": "allow_edit",
+ "fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "Only Allow Edit For",
+ "options": "Role",
+ "permlevel": 0,
+ "print_width": "160px",
+ "reqd": 1,
+ "width": "160px"
+ },
+ {
+ "fieldname": "message",
+ "fieldtype": "Text",
+ "in_list_view": 1,
+ "label": "Message",
+ "permlevel": 0,
+ "print_width": "160px",
+ "reqd": 0,
+ "width": "160px"
+ }
+ ],
+ "idx": 1,
+ "istable": 1,
+ "modified": "2014-05-27 06:35:01.070158",
+ "modified_by": "Administrator",
+ "module": "Workflow",
+ "name": "Workflow Document State",
+ "owner": "Administrator",
+ "permissions": []
+}
diff --git a/frappe/core/doctype/workflow_document_state/workflow_document_state.py b/frappe/workflow/doctype/workflow_document_state/workflow_document_state.py
similarity index 100%
rename from frappe/core/doctype/workflow_document_state/workflow_document_state.py
rename to frappe/workflow/doctype/workflow_document_state/workflow_document_state.py
diff --git a/frappe/core/doctype/workflow_state/README.md b/frappe/workflow/doctype/workflow_state/README.md
similarity index 100%
rename from frappe/core/doctype/workflow_state/README.md
rename to frappe/workflow/doctype/workflow_state/README.md
diff --git a/frappe/core/doctype/workflow_state/__init__.py b/frappe/workflow/doctype/workflow_state/__init__.py
similarity index 100%
rename from frappe/core/doctype/workflow_state/__init__.py
rename to frappe/workflow/doctype/workflow_state/__init__.py
diff --git a/frappe/core/doctype/workflow_state/test_records.json b/frappe/workflow/doctype/workflow_state/test_records.json
similarity index 100%
rename from frappe/core/doctype/workflow_state/test_records.json
rename to frappe/workflow/doctype/workflow_state/test_records.json
diff --git a/frappe/core/doctype/workflow_state/test_workflow_state.py b/frappe/workflow/doctype/workflow_state/test_workflow_state.py
similarity index 100%
rename from frappe/core/doctype/workflow_state/test_workflow_state.py
rename to frappe/workflow/doctype/workflow_state/test_workflow_state.py
diff --git a/frappe/core/doctype/workflow_state/workflow_state.json b/frappe/workflow/doctype/workflow_state/workflow_state.json
similarity index 65%
rename from frappe/core/doctype/workflow_state/workflow_state.json
rename to frappe/workflow/doctype/workflow_state/workflow_state.json
index f34a63269e..30e191513e 100644
--- a/frappe/core/doctype/workflow_state/workflow_state.json
+++ b/frappe/workflow/doctype/workflow_state/workflow_state.json
@@ -1,56 +1,56 @@
{
- "allow_import": 1,
- "autoname": "field:workflow_state_name",
- "creation": "2012-12-28 10:49:56.000000",
- "description": "Workflow state represents the current state of a document.",
- "docstatus": 0,
- "doctype": "DocType",
- "document_type": "Master",
+ "allow_import": 1,
+ "autoname": "field:workflow_state_name",
+ "creation": "2012-12-28 10:49:56.000000",
+ "description": "Workflow state represents the current state of a document.",
+ "docstatus": 0,
+ "doctype": "DocType",
+ "document_type": "Master",
"fields": [
{
- "fieldname": "workflow_state_name",
- "fieldtype": "Data",
- "label": "State",
- "permlevel": 0,
+ "fieldname": "workflow_state_name",
+ "fieldtype": "Data",
+ "label": "State",
+ "permlevel": 0,
"reqd": 1
- },
+ },
{
- "description": "Icon will appear on the button",
- "fieldname": "icon",
- "fieldtype": "Select",
- "label": "Icon",
- "options": "\nglass\nmusic\nsearch\nenvelope\nheart\nstar\nstar-empty\nuser\nfilm\nth-large\nth\nth-list\nok\nremove\nzoom-in\nzoom-out\noff\nsignal\ncog\ntrash\nhome\nfile\ntime\nroad\ndownload-alt\ndownload\nupload\ninbox\nplay-circle\nrepeat\nrefresh\nlist-alt\nlock\nflag\nheadphones\nvolume-off\nvolume-down\nvolume-up\nqrcode\nbarcode\ntag\ntags\nbook\nbookmark\nprint\ncamera\nfont\nbold\nitalic\ntext-height\ntext-width\nalign-left\nalign-center\nalign-right\nalign-justify\nlist\nindent-left\nindent-right\nfacetime-video\npicture\npencil\nmap-marker\nadjust\ntint\nedit\nshare\ncheck\nmove\nstep-backward\nfast-backward\nbackward\nplay\npause\nstop\nforward\nfast-forward\nstep-forward\neject\nchevron-left\nchevron-right\nplus-sign\nminus-sign\nremove-sign\nok-sign\nquestion-sign\ninfo-sign\nscreenshot\nremove-circle\nok-circle\nban-circle\narrow-left\narrow-right\narrow-up\narrow-down\nshare-alt\nresize-full\nresize-small\nplus\nminus\nasterisk\nexclamation-sign\ngift\nleaf\nfire\neye-open\neye-close\nwarning-sign\nplane\ncalendar\nrandom\ncomment\nmagnet\nchevron-up\nchevron-down\nretweet\nshopping-cart\nfolder-close\nfolder-open\nresize-vertical\nresize-horizontal\nhdd\nbullhorn\nbell\ncertificate\nthumbs-up\nthumbs-down\nhand-right\nhand-left\nhand-up\nhand-down\ncircle-arrow-right\ncircle-arrow-left\ncircle-arrow-up\ncircle-arrow-down\nglobe\nwrench\ntasks\nfilter\nbriefcase\nfullscreen",
- "permlevel": 0,
+ "description": "Icon will appear on the button",
+ "fieldname": "icon",
+ "fieldtype": "Select",
+ "label": "Icon",
+ "options": "\nglass\nmusic\nsearch\nenvelope\nheart\nstar\nstar-empty\nuser\nfilm\nth-large\nth\nth-list\nok\nremove\nzoom-in\nzoom-out\noff\nsignal\ncog\ntrash\nhome\nfile\ntime\nroad\ndownload-alt\ndownload\nupload\ninbox\nplay-circle\nrepeat\nrefresh\nlist-alt\nlock\nflag\nheadphones\nvolume-off\nvolume-down\nvolume-up\nqrcode\nbarcode\ntag\ntags\nbook\nbookmark\nprint\ncamera\nfont\nbold\nitalic\ntext-height\ntext-width\nalign-left\nalign-center\nalign-right\nalign-justify\nlist\nindent-left\nindent-right\nfacetime-video\npicture\npencil\nmap-marker\nadjust\ntint\nedit\nshare\ncheck\nmove\nstep-backward\nfast-backward\nbackward\nplay\npause\nstop\nforward\nfast-forward\nstep-forward\neject\nchevron-left\nchevron-right\nplus-sign\nminus-sign\nremove-sign\nok-sign\nquestion-sign\ninfo-sign\nscreenshot\nremove-circle\nok-circle\nban-circle\narrow-left\narrow-right\narrow-up\narrow-down\nshare-alt\nresize-full\nresize-small\nplus\nminus\nasterisk\nexclamation-sign\ngift\nleaf\nfire\neye-open\neye-close\nwarning-sign\nplane\ncalendar\nrandom\ncomment\nmagnet\nchevron-up\nchevron-down\nretweet\nshopping-cart\nfolder-close\nfolder-open\nresize-vertical\nresize-horizontal\nhdd\nbullhorn\nbell\ncertificate\nthumbs-up\nthumbs-down\nhand-right\nhand-left\nhand-up\nhand-down\ncircle-arrow-right\ncircle-arrow-left\ncircle-arrow-up\ncircle-arrow-down\nglobe\nwrench\ntasks\nfilter\nbriefcase\nfullscreen",
+ "permlevel": 0,
"reqd": 0
- },
+ },
{
- "description": "Style represents the button color: Success - Green, Danger - Red, Inverse - Black, Primary - Dark Blue, Info - Light Blue, Warning - Orange",
- "fieldname": "style",
- "fieldtype": "Select",
- "label": "Style",
- "options": "\nPrimary\nInfo\nSuccess\nWarning\nDanger\nInverse",
- "permlevel": 0,
+ "description": "Style represents the button color: Success - Green, Danger - Red, Inverse - Black, Primary - Dark Blue, Info - Light Blue, Warning - Orange",
+ "fieldname": "style",
+ "fieldtype": "Select",
+ "label": "Style",
+ "options": "\nPrimary\nInfo\nSuccess\nWarning\nDanger\nInverse",
+ "permlevel": 0,
"reqd": 0
}
- ],
- "icon": "icon-flag",
- "idx": 1,
- "modified": "2014-01-20 17:49:35.000000",
- "modified_by": "Administrator",
- "module": "Core",
- "name": "Workflow State",
- "owner": "Administrator",
+ ],
+ "icon": "icon-flag",
+ "idx": 1,
+ "modified": "2014-01-20 17:49:35.000001",
+ "modified_by": "Administrator",
+ "module": "Workflow",
+ "name": "Workflow State",
+ "owner": "Administrator",
"permissions": [
{
- "cancel": 1,
- "create": 1,
- "delete": 1,
- "email": 1,
- "permlevel": 0,
- "print": 1,
- "read": 1,
- "role": "System Manager",
+ "cancel": 1,
+ "create": 1,
+ "delete": 1,
+ "email": 1,
+ "permlevel": 0,
+ "print": 1,
+ "read": 1,
+ "role": "System Manager",
"write": 1
}
]
-}
\ No newline at end of file
+}
diff --git a/frappe/core/doctype/workflow_state/workflow_state.py b/frappe/workflow/doctype/workflow_state/workflow_state.py
similarity index 100%
rename from frappe/core/doctype/workflow_state/workflow_state.py
rename to frappe/workflow/doctype/workflow_state/workflow_state.py
diff --git a/frappe/core/doctype/workflow_transition/README.md b/frappe/workflow/doctype/workflow_transition/README.md
similarity index 100%
rename from frappe/core/doctype/workflow_transition/README.md
rename to frappe/workflow/doctype/workflow_transition/README.md
diff --git a/frappe/core/doctype/workflow_transition/__init__.py b/frappe/workflow/doctype/workflow_transition/__init__.py
similarity index 100%
rename from frappe/core/doctype/workflow_transition/__init__.py
rename to frappe/workflow/doctype/workflow_transition/__init__.py
diff --git a/frappe/workflow/doctype/workflow_transition/workflow_transition.json b/frappe/workflow/doctype/workflow_transition/workflow_transition.json
new file mode 100644
index 0000000000..edd3cbceca
--- /dev/null
+++ b/frappe/workflow/doctype/workflow_transition/workflow_transition.json
@@ -0,0 +1,59 @@
+{
+ "creation": "2013-02-22 01:27:36.000000",
+ "description": "Defines actions on states and the next step and allowed roles.",
+ "docstatus": 0,
+ "doctype": "DocType",
+ "fields": [
+ {
+ "fieldname": "state",
+ "fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "State",
+ "options": "Workflow State",
+ "permlevel": 0,
+ "print_width": "200px",
+ "reqd": 1,
+ "width": "200px"
+ },
+ {
+ "fieldname": "action",
+ "fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "Action",
+ "options": "Workflow Action",
+ "permlevel": 0,
+ "print_width": "200px",
+ "reqd": 1,
+ "width": "200px"
+ },
+ {
+ "fieldname": "next_state",
+ "fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "Next State",
+ "options": "Workflow State",
+ "permlevel": 0,
+ "print_width": "200px",
+ "reqd": 1,
+ "width": "200px"
+ },
+ {
+ "fieldname": "allowed",
+ "fieldtype": "Link",
+ "in_list_view": 1,
+ "label": "Allowed",
+ "options": "Role",
+ "permlevel": 0,
+ "print_width": "200px",
+ "reqd": 1,
+ "width": "200px"
+ }
+ ],
+ "idx": 1,
+ "istable": 1,
+ "modified": "2013-12-20 19:21:55.000001",
+ "modified_by": "Administrator",
+ "module": "Workflow",
+ "name": "Workflow Transition",
+ "owner": "Administrator"
+}
diff --git a/frappe/core/doctype/workflow_transition/workflow_transition.py b/frappe/workflow/doctype/workflow_transition/workflow_transition.py
similarity index 100%
rename from frappe/core/doctype/workflow_transition/workflow_transition.py
rename to frappe/workflow/doctype/workflow_transition/workflow_transition.py