Skip to content

Commit

Permalink
Merge pull request #423 from efeone/hallmark_request_workflow
Browse files Browse the repository at this point in the history
feat: Created workflow for Hallmark Request DocType
  • Loading branch information
MhmdSinanKT authored Aug 28, 2024
2 parents a893df8 + 8efba41 commit c563671
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 1 deletion.
128 changes: 128 additions & 0 deletions aumms/fixtures/workflow.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,132 @@
[
{
"docstatus": 0,
"doctype": "Workflow",
"document_type": "Hallmark Request",
"is_active": 1,
"modified": "2024-08-27 10:37:01.999115",
"name": "Hallmark Request Workflow",
"override_status": 0,
"send_email_alert": 0,
"states": [
{
"allow_edit": "All",
"avoid_status_override": 0,
"doc_status": "0",
"is_optional_state": 0,
"message": null,
"next_action_email_template": null,
"parent": "Hallmark Request Workflow",
"parentfield": "states",
"parenttype": "Workflow",
"state": "Draft",
"update_field": null,
"update_value": null,
"workflow_builder_id": null
},
{
"allow_edit": "All",
"avoid_status_override": 0,
"doc_status": "1",
"is_optional_state": 0,
"message": null,
"next_action_email_template": null,
"parent": "Hallmark Request Workflow",
"parentfield": "states",
"parenttype": "Workflow",
"state": "Submitted",
"update_field": null,
"update_value": null,
"workflow_builder_id": null
},
{
"allow_edit": "All",
"avoid_status_override": 0,
"doc_status": "1",
"is_optional_state": 0,
"message": null,
"next_action_email_template": null,
"parent": "Hallmark Request Workflow",
"parentfield": "states",
"parenttype": "Workflow",
"state": "Sent for Hallmarking",
"update_field": null,
"update_value": null,
"workflow_builder_id": null
},
{
"allow_edit": "All",
"avoid_status_override": 0,
"doc_status": "1",
"is_optional_state": 0,
"message": null,
"next_action_email_template": null,
"parent": "Hallmark Request Workflow",
"parentfield": "states",
"parenttype": "Workflow",
"state": "Send for Hallmarking",
"update_field": null,
"update_value": null,
"workflow_builder_id": null
},
{
"allow_edit": "All",
"avoid_status_override": 0,
"doc_status": "1",
"is_optional_state": 0,
"message": null,
"next_action_email_template": null,
"parent": "Hallmark Request Workflow",
"parentfield": "states",
"parenttype": "Workflow",
"state": "Items Hallmarked",
"update_field": null,
"update_value": null,
"workflow_builder_id": null
}
],
"transitions": [
{
"action": "Submit",
"allow_self_approval": 1,
"allowed": "All",
"condition": null,
"next_state": "Submitted",
"parent": "Hallmark Request Workflow",
"parentfield": "transitions",
"parenttype": "Workflow",
"state": "Draft",
"workflow_builder_id": null
},
{
"action": "Send for Hallmarking",
"allow_self_approval": 1,
"allowed": "All",
"condition": null,
"next_state": "Sent for Hallmarking",
"parent": "Hallmark Request Workflow",
"parentfield": "transitions",
"parenttype": "Workflow",
"state": "Submitted",
"workflow_builder_id": null
},
{
"action": "Hallmark Items Return",
"allow_self_approval": 1,
"allowed": "All",
"condition": null,
"next_state": "Items Hallmarked",
"parent": "Hallmark Request Workflow",
"parentfield": "transitions",
"parenttype": "Workflow",
"state": "Sent for Hallmarking",
"workflow_builder_id": null
}
],
"workflow_data": null,
"workflow_name": "Hallmark Request Workflow",
"workflow_state_field": "workflow_state"
},
{
"docstatus": 0,
"doctype": "Workflow",
Expand Down
2 changes: 1 addition & 1 deletion aumms/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
},
{
"dt":"Workflow",
"filters":[["name","in",["Feasibility check", "Touch Validation Workflow", "Purchase Receipt Workflow"]]]
"filters":[["name","in",["Feasibility check", "Touch Validation Workflow", "Purchase Receipt Workflow","Hallmark Request Workflow"]]]
},
{
"dt":"Workflow Action Master",
Expand Down

0 comments on commit c563671

Please sign in to comment.