Selaa lähdekoodia

[refactor] moved workflow to separate module

version-14
Rushabh Mehta 11 vuotta sitten
vanhempi
commit
2f30edd65c
30 muutettua tiedostoa jossa 307 lisäystä ja 306 poistoa
  1. +0
    -94
      frappe/core/doctype/workflow/workflow.json
  2. +0
    -36
      frappe/core/doctype/workflow_action/workflow_action.json
  3. +0
    -75
      frappe/core/doctype/workflow_document_state/workflow_document_state.json
  4. +0
    -59
      frappe/core/doctype/workflow_transition/workflow_transition.json
  5. +1
    -0
      frappe/modules.txt
  6. +0
    -0
      frappe/workflow/__init__.py
  7. +0
    -0
      frappe/workflow/doctype/__init__.py
  8. +0
    -0
      frappe/workflow/doctype/workflow/README.md
  9. +0
    -0
      frappe/workflow/doctype/workflow/__init__.py
  10. +0
    -0
      frappe/workflow/doctype/workflow/workflow.js
  11. +94
    -0
      frappe/workflow/doctype/workflow/workflow.json
  12. +0
    -0
      frappe/workflow/doctype/workflow/workflow.py
  13. +0
    -0
      frappe/workflow/doctype/workflow_action/README.md
  14. +0
    -0
      frappe/workflow/doctype/workflow_action/__init__.py
  15. +36
    -0
      frappe/workflow/doctype/workflow_action/workflow_action.json
  16. +0
    -0
      frappe/workflow/doctype/workflow_action/workflow_action.py
  17. +0
    -0
      frappe/workflow/doctype/workflow_document_state/README.md
  18. +0
    -0
      frappe/workflow/doctype/workflow_document_state/__init__.py
  19. +75
    -0
      frappe/workflow/doctype/workflow_document_state/workflow_document_state.json
  20. +0
    -0
      frappe/workflow/doctype/workflow_document_state/workflow_document_state.py
  21. +0
    -0
      frappe/workflow/doctype/workflow_state/README.md
  22. +0
    -0
      frappe/workflow/doctype/workflow_state/__init__.py
  23. +0
    -0
      frappe/workflow/doctype/workflow_state/test_records.json
  24. +0
    -0
      frappe/workflow/doctype/workflow_state/test_workflow_state.py
  25. +42
    -42
      frappe/workflow/doctype/workflow_state/workflow_state.json
  26. +0
    -0
      frappe/workflow/doctype/workflow_state/workflow_state.py
  27. +0
    -0
      frappe/workflow/doctype/workflow_transition/README.md
  28. +0
    -0
      frappe/workflow/doctype/workflow_transition/__init__.py
  29. +59
    -0
      frappe/workflow/doctype/workflow_transition/workflow_transition.json
  30. +0
    -0
      frappe/workflow/doctype/workflow_transition/workflow_transition.py

+ 0
- 94
frappe/core/doctype/workflow/workflow.json Näytä tiedosto

@@ -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. <br>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
}
]
}

+ 0
- 36
frappe/core/doctype/workflow_action/workflow_action.json Näytä tiedosto

@@ -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
}
]
}

+ 0
- 75
frappe/core/doctype/workflow_document_state/workflow_document_state.json Näytä tiedosto

@@ -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": []
}

+ 0
- 59
frappe/core/doctype/workflow_transition/workflow_transition.json Näytä tiedosto

@@ -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"
}

+ 1
- 0
frappe/modules.txt Näytä tiedosto

@@ -1,2 +1,3 @@
Core
Website
Workflow

+ 0
- 0
frappe/workflow/__init__.py Näytä tiedosto


+ 0
- 0
frappe/workflow/doctype/__init__.py Näytä tiedosto


frappe/core/doctype/workflow/README.md → frappe/workflow/doctype/workflow/README.md Näytä tiedosto


frappe/core/doctype/workflow/__init__.py → frappe/workflow/doctype/workflow/__init__.py Näytä tiedosto


frappe/core/doctype/workflow/workflow.js → frappe/workflow/doctype/workflow/workflow.js Näytä tiedosto


+ 94
- 0
frappe/workflow/doctype/workflow/workflow.json Näytä tiedosto

@@ -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. <br>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
}
]
}

frappe/core/doctype/workflow/workflow.py → frappe/workflow/doctype/workflow/workflow.py Näytä tiedosto


frappe/core/doctype/workflow_action/README.md → frappe/workflow/doctype/workflow_action/README.md Näytä tiedosto


frappe/core/doctype/workflow_action/__init__.py → frappe/workflow/doctype/workflow_action/__init__.py Näytä tiedosto


+ 36
- 0
frappe/workflow/doctype/workflow_action/workflow_action.json Näytä tiedosto

@@ -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
}
]
}

frappe/core/doctype/workflow_action/workflow_action.py → frappe/workflow/doctype/workflow_action/workflow_action.py Näytä tiedosto


frappe/core/doctype/workflow_document_state/README.md → frappe/workflow/doctype/workflow_document_state/README.md Näytä tiedosto


frappe/core/doctype/workflow_document_state/__init__.py → frappe/workflow/doctype/workflow_document_state/__init__.py Näytä tiedosto


+ 75
- 0
frappe/workflow/doctype/workflow_document_state/workflow_document_state.json Näytä tiedosto

@@ -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": []
}

frappe/core/doctype/workflow_document_state/workflow_document_state.py → frappe/workflow/doctype/workflow_document_state/workflow_document_state.py Näytä tiedosto


frappe/core/doctype/workflow_state/README.md → frappe/workflow/doctype/workflow_state/README.md Näytä tiedosto


frappe/core/doctype/workflow_state/__init__.py → frappe/workflow/doctype/workflow_state/__init__.py Näytä tiedosto


frappe/core/doctype/workflow_state/test_records.json → frappe/workflow/doctype/workflow_state/test_records.json Näytä tiedosto


frappe/core/doctype/workflow_state/test_workflow_state.py → frappe/workflow/doctype/workflow_state/test_workflow_state.py Näytä tiedosto


frappe/core/doctype/workflow_state/workflow_state.json → frappe/workflow/doctype/workflow_state/workflow_state.json Näytä tiedosto

@@ -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
}
]
}
}

frappe/core/doctype/workflow_state/workflow_state.py → frappe/workflow/doctype/workflow_state/workflow_state.py Näytä tiedosto


frappe/core/doctype/workflow_transition/README.md → frappe/workflow/doctype/workflow_transition/README.md Näytä tiedosto


frappe/core/doctype/workflow_transition/__init__.py → frappe/workflow/doctype/workflow_transition/__init__.py Näytä tiedosto


+ 59
- 0
frappe/workflow/doctype/workflow_transition/workflow_transition.json Näytä tiedosto

@@ -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"
}

frappe/core/doctype/workflow_transition/workflow_transition.py → frappe/workflow/doctype/workflow_transition/workflow_transition.py Näytä tiedosto


Ladataan…
Peruuta
Tallenna