From 8d79c40737122ce4c74c82f39fd3eef936c359ab Mon Sep 17 00:00:00 2001 From: AadithPunathilBuildsuite Date: Tue, 27 Jan 2026 14:16:16 +0530 Subject: [PATCH] fix:update the daliy cash --- .../doctype/daliy_cash_entry/__init__.py | 0 .../daliy_cash_entry/daliy_cash_entry.js | 31 + .../daliy_cash_entry/daliy_cash_entry.json | 175 +++ .../daliy_cash_entry/daliy_cash_entry.py | 102 ++ .../daliy_cash_entry/test_daliy_cash_entry.py | 9 + calicut_textiles/fixtures/role.json | 1003 +++++++++++++++++ calicut_textiles/fixtures/workflow.json | 807 +++++++++++++ .../fixtures/workflow_action.json | 464 ++++++++ calicut_textiles/fixtures/workflow_state.json | 92 ++ calicut_textiles/hooks.py | 7 +- 10 files changed, 2689 insertions(+), 1 deletion(-) create mode 100644 calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/__init__.py create mode 100644 calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.js create mode 100644 calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.json create mode 100644 calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.py create mode 100644 calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/test_daliy_cash_entry.py create mode 100644 calicut_textiles/fixtures/role.json create mode 100644 calicut_textiles/fixtures/workflow.json create mode 100644 calicut_textiles/fixtures/workflow_action.json create mode 100644 calicut_textiles/fixtures/workflow_state.json diff --git a/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/__init__.py b/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.js b/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.js new file mode 100644 index 0000000..5914711 --- /dev/null +++ b/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.js @@ -0,0 +1,31 @@ +// Copyright (c) 2026, sammish and contributors +// For license information, please see license.txt + +frappe.ui.form.on("Daliy Cash Entry", { + refresh:function(frm) { + if (frm.doc.paid_type && frm.doc.docstatus === 1) { + frm.add_custom_button(__("Payment Entry"),function () { + frappe.call({ + method:"calicut_textiles.calicut_textiles.doctype.daliy_cash_entry.daliy_cash_entry.create_payment_entry", + args:{daliy_cash_entry:frm.doc.name}, + callback:function (r) { + var doc = frappe.model.sync(r.message); + frappe.set_route("Form", doc[0].doctype, doc[0].name); + } + }) + },__("Create")); + } + if(frm.doc.docstatus === 1){ + frm.add_custom_button(__("Journal Entry"),function () { + frappe.call({ + method:"calicut_textiles.calicut_textiles.doctype.daliy_cash_entry.daliy_cash_entry.create_journal_entry", + args:{daliy_cash_entry:frm.doc.name}, + callback:function (r) { + var doc = frappe.model.sync(r.message); + frappe.set_route("Form", doc[0].doctype, doc[0].name); + } + }) + },__("Create")); + } + }, +}); diff --git a/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.json b/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.json new file mode 100644 index 0000000..1db7c5c --- /dev/null +++ b/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.json @@ -0,0 +1,175 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2026-01-26 17:22:26.542287", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "posting_date", + "paid_to", + "paid_type", + "paid_name", + "column_break_rdjj", + "amount", + "note", + "attatchment", + "section_break_m8ry", + "payment_entry", + "journal_entry", + "amended_from" + ], + "fields": [ + { + "fieldname": "section_break_m8ry", + "fieldtype": "Section Break" + }, + { + "default": "Today", + "fieldname": "posting_date", + "fieldtype": "Date", + "in_list_view": 1, + "label": "Posting Date", + "reqd": 1 + }, + { + "fieldname": "paid_to", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Paid To", + "reqd": 1 + }, + { + "fieldname": "column_break_rdjj", + "fieldtype": "Column Break" + }, + { + "fieldname": "amount", + "fieldtype": "Currency", + "in_list_view": 1, + "label": "Amount ", + "reqd": 1 + }, + { + "fieldname": "note", + "fieldtype": "Small Text", + "in_list_view": 1, + "label": "Note", + "reqd": 1 + }, + { + "fieldname": "attatchment", + "fieldtype": "Attach", + "label": "Attatchment " + }, + { + "fieldname": "paid_type", + "fieldtype": "Data", + "hidden": 1, + "label": "Paid Type" + }, + { + "fieldname": "paid_name", + "fieldtype": "Data", + "hidden": 1, + "label": "Paid Name" + }, + { + "allow_on_submit": 1, + "fieldname": "payment_entry", + "fieldtype": "Link", + "hidden": 1, + "label": "Payment Entry", + "options": "Payment Entry" + }, + { + "allow_on_submit": 1, + "fieldname": "journal_entry", + "fieldtype": "Link", + "hidden": 1, + "label": "Journal Entry", + "options": "Journal Entry" + }, + { + "fieldname": "amended_from", + "fieldtype": "Link", + "label": "Amended From", + "no_copy": 1, + "options": "Daliy Cash Entry", + "print_hide": 1, + "read_only": 1, + "search_index": 1 + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "is_submittable": 1, + "links": [], + "modified": "2026-01-27 14:12:51.675806", + "modified_by": "Administrator", + "module": "Calicut Textiles", + "name": "Daliy Cash Entry", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "submit": 1, + "write": 1 + }, + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "CT CASH COUNTER", + "select": 1, + "share": 1, + "write": 1 + }, + { + "cancel": 1, + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "CT CASH APPROVER", + "select": 1, + "share": 1, + "submit": 1, + "write": 1 + }, + { + "cancel": 1, + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "CT CASH APPROVER UNDER 5000", + "select": 1, + "share": 1, + "submit": 1, + "write": 1 + } + ], + "row_format": "Dynamic", + "rows_threshold_for_grid_search": 20, + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.py b/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.py new file mode 100644 index 0000000..9a512fb --- /dev/null +++ b/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/daliy_cash_entry.py @@ -0,0 +1,102 @@ +# Copyright (c) 2026, sammish and contributors +# For license information, please see license.txt + +import frappe +from frappe.model.document import Document + + +class DaliyCashEntry(Document): + def on_cancel(self): + if self.payment_entry: + pe = frappe.get_doc("Payment Entry", self.payment_entry) + if pe.docstatus == 1: + pe.cancel() + frappe.db.set_value(self.doctype, self.name, "payment_entry", None) + frappe.db.commit() + pe.delete() + if self.journal_entry: + je = frappe.get_doc("Journal Entry", self.journal_entry) + if je.docstatus == 1: + je.cancel() + frappe.db.set_value(self.doctype, self.name, "journal_entry", None) + frappe.db.commit() + je.delete() + def validate(self): + if not self.paid_to: + return + + emp = frappe.db.get_value( + "Employee", + {"employee_name": ["like", f"%{self.paid_to}%"]}, + "name" + ) + + sup = frappe.db.get_value( + "Supplier", + {"supplier_name": ["like", f"%{self.paid_to}%"]}, + "name" + ) + + if emp: + self.paid_type = "Employee" + self.paid_name = emp + elif sup: + self.paid_type = "Supplier" + self.paid_name = sup + else: + self.paid_type = "" + self.paid_name = "" + +@frappe.whitelist() +def create_payment_entry(daliy_cash_entry): + doc = frappe.get_doc("Daliy Cash Entry", daliy_cash_entry) + company = frappe.db.get_single_value("Global Defaults", "default_company") + if doc.paid_type: + payment_entry = frappe.get_doc({ + "doctype": "Payment Entry", + "payment_type": "Pay", + "mode_of_payment": "Cash", + "company": company, + "paid_from": frappe.db.get_value("Company", company, "default_cash_account"), + "party_type": doc.paid_type, + "party": doc.paid_name, + "received_amount":doc.amount, + "paid_amount": doc.amount, + "source_exchange_rate": 1, + "target_exchange_rate": 1, + "cost_center": frappe.db.get_value("Company", company, "cost_center"), + "remarks": doc.note + }) + payment_entry.insert() + frappe.db.set_value(doc.doctype, doc.name, "payment_entry", payment_entry.name) + frappe.db.commit() + return payment_entry + +@frappe.whitelist() +def create_journal_entry(daliy_cash_entry): + doc = frappe.get_doc("Daliy Cash Entry", daliy_cash_entry) + company = frappe.db.get_single_value("Global Defaults", "default_company") + journal_entry = frappe.get_doc({ + "doctype": "Journal Entry", + "company": company, + "posting_date": doc.posting_date, + "user_remark": f"Paid To :{doc.paid_to}, Note:{doc.note}", + "accounts": [ + { + "account": frappe.db.get_value("Company", company, "default_cash_account"), + "debit_in_account_currency": doc.amount, + "debit": doc.amount, + "cost_center": frappe.db.get_value("Company", company, "cost_center"), + }, + { + "account": frappe.db.get_value("Company", company, "default_expense_account"), + "credit_in_account_currency": doc.amount, + "credit": doc.amount, + "cost_center": frappe.db.get_value("Company", company, "cost_center"), + } + ] + }) + journal_entry.insert() + frappe.db.set_value(doc.doctype, doc.name, "journal_entry", journal_entry.name) + frappe.db.commit() + return journal_entry \ No newline at end of file diff --git a/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/test_daliy_cash_entry.py b/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/test_daliy_cash_entry.py new file mode 100644 index 0000000..98da82f --- /dev/null +++ b/calicut_textiles/calicut_textiles/doctype/daliy_cash_entry/test_daliy_cash_entry.py @@ -0,0 +1,9 @@ +# Copyright (c) 2026, sammish and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestDaliyCashEntry(FrappeTestCase): + pass diff --git a/calicut_textiles/fixtures/role.json b/calicut_textiles/fixtures/role.json new file mode 100644 index 0000000..16a9450 --- /dev/null +++ b/calicut_textiles/fixtures/role.json @@ -0,0 +1,1003 @@ +[ + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:38.457419", + "name": "System Manager", + "restrict_to_domain": null, + "role_name": "System Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 0, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:38.464721", + "name": "Guest", + "restrict_to_domain": null, + "role_name": "Guest", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:38.472151", + "name": "Desk User", + "restrict_to_domain": null, + "role_name": "Desk User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:38.499106", + "name": "Administrator", + "restrict_to_domain": null, + "role_name": "Administrator", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-02-11 08:48:17.135393", + "name": "All", + "restrict_to_domain": null, + "role_name": "All", + "two_factor_auth": 1 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:38.946727", + "name": "Website Manager", + "restrict_to_domain": null, + "role_name": "Website Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:39.304695", + "name": "Dashboard Manager", + "restrict_to_domain": null, + "role_name": "Dashboard Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:40.418709", + "name": "Workspace Manager", + "restrict_to_domain": null, + "role_name": "Workspace Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:40.618797", + "name": "Report Manager", + "restrict_to_domain": null, + "role_name": "Report Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:41.472275", + "name": "Script Manager", + "restrict_to_domain": null, + "role_name": "Script Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:42.519039", + "name": "Inbox User", + "restrict_to_domain": null, + "role_name": "Inbox User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:47.403566", + "name": "Prepared Report User", + "restrict_to_domain": null, + "role_name": "Prepared Report User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:48.977102", + "name": "Knowledge Base Editor", + "restrict_to_domain": null, + "role_name": "Knowledge Base Editor", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:48.988383", + "name": "Knowledge Base Contributor", + "restrict_to_domain": null, + "role_name": "Knowledge Base Contributor", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:49.050342", + "name": "Newsletter Manager", + "restrict_to_domain": null, + "role_name": "Newsletter Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:49.126220", + "name": "Blogger", + "restrict_to_domain": null, + "role_name": "Blogger", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:55.011252", + "name": "Accounts User", + "restrict_to_domain": null, + "role_name": "Accounts User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:55.019893", + "name": "Purchase User", + "restrict_to_domain": null, + "role_name": "Purchase User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:55.028557", + "name": "Sales User", + "restrict_to_domain": null, + "role_name": "Sales User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:14:55.033505", + "name": "Accounts Manager", + "restrict_to_domain": null, + "role_name": "Accounts Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:01.690517", + "name": "Purchase Master Manager", + "restrict_to_domain": null, + "role_name": "Purchase Master Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:01.695875", + "name": "Sales Manager", + "restrict_to_domain": null, + "role_name": "Sales Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:01.701110", + "name": "Maintenance User", + "restrict_to_domain": null, + "role_name": "Maintenance User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:01.725406", + "name": "Maintenance Manager", + "restrict_to_domain": null, + "role_name": "Maintenance Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:01.738460", + "name": "Purchase Manager", + "restrict_to_domain": null, + "role_name": "Purchase Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:01.743865", + "name": "Sales Master Manager", + "restrict_to_domain": null, + "role_name": "Sales Master Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:05.630851", + "name": "Translator", + "restrict_to_domain": null, + "role_name": "Translator", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:12.071464", + "name": "Auditor", + "restrict_to_domain": null, + "role_name": "Auditor", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:17.423395", + "name": "Employee", + "restrict_to_domain": null, + "role_name": "Employee", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:24.342934", + "name": "Stock Manager", + "restrict_to_domain": null, + "role_name": "Stock Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:24.362029", + "name": "Stock User", + "restrict_to_domain": null, + "role_name": "Stock User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:32.243382", + "name": "HR Manager", + "restrict_to_domain": null, + "role_name": "HR Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:36.920427", + "name": "Manufacturing Manager", + "restrict_to_domain": null, + "role_name": "Manufacturing Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:38.945476", + "name": "Manufacturing User", + "restrict_to_domain": null, + "role_name": "Manufacturing User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:38.972655", + "name": "HR User", + "restrict_to_domain": null, + "role_name": "HR User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:38.992854", + "name": "Projects User", + "restrict_to_domain": null, + "role_name": "Projects User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:39.276227", + "name": "Projects Manager", + "restrict_to_domain": null, + "role_name": "Projects Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 0, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:23.412585", + "name": "Customer", + "restrict_to_domain": null, + "role_name": "Customer", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:47.227743", + "name": "Academics User", + "restrict_to_domain": null, + "role_name": "Academics User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:47.455159", + "name": "Item Manager", + "restrict_to_domain": null, + "role_name": "Item Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:48.227190", + "name": "Fleet Manager", + "restrict_to_domain": null, + "role_name": "Fleet Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:48.263560", + "name": "Delivery User", + "restrict_to_domain": null, + "role_name": "Delivery User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:48.272588", + "name": "Delivery Manager", + "restrict_to_domain": null, + "role_name": "Delivery Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:15:55.747309", + "name": "Quality Manager", + "restrict_to_domain": null, + "role_name": "Quality Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:02.769350", + "name": "Fulfillment User", + "restrict_to_domain": null, + "role_name": "Fulfillment User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:06.089411", + "name": "Support Team", + "restrict_to_domain": null, + "role_name": "Support Team", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:10.946584", + "name": "Agriculture Manager", + "restrict_to_domain": null, + "role_name": "Agriculture Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:11.045225", + "name": "Agriculture User", + "restrict_to_domain": null, + "role_name": "Agriculture User", + "two_factor_auth": 0 + }, + { + "desk_access": 0, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:23.413358", + "name": "Supplier", + "restrict_to_domain": null, + "role_name": "Supplier", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:21.491597", + "name": "Analytics", + "restrict_to_domain": null, + "role_name": "Analytics", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:54.293718", + "name": "Interviewer", + "restrict_to_domain": null, + "role_name": "Interviewer", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:55.672979", + "name": "Leave Approver", + "restrict_to_domain": null, + "role_name": "Leave Approver", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-07-24 11:16:59.436200", + "name": "Expense Approver", + "restrict_to_domain": null, + "role_name": "Expense Approver", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 1, + "modified": "2024-07-24 11:17:12.440300", + "name": "Employee Self Service", + "restrict_to_domain": null, + "role_name": "Employee Self Service", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2024-11-04 20:53:38.158249", + "name": "Loan Manager", + "restrict_to_domain": null, + "role_name": "Loan Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": "/app/selling", + "is_custom": 0, + "modified": "2025-01-01 08:15:47.660998", + "name": "Akhil-Role", + "restrict_to_domain": null, + "role_name": "Akhil-Role", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-01-01 08:11:41.236255", + "name": "Sivasankaran Role", + "restrict_to_domain": null, + "role_name": "Sivasankaran Role", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-01-12 14:38:14.068496", + "name": "Sales CT Role", + "restrict_to_domain": null, + "role_name": "Sales CT Role", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-01-13 14:02:13.080986", + "name": "FA Role", + "restrict_to_domain": null, + "role_name": "FA Role", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": "/app/private/selling", + "is_custom": 0, + "modified": "2025-04-14 10:26:18.341207", + "name": "CT CASH COUNTER", + "restrict_to_domain": null, + "role_name": "CT CASH COUNTER", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-03-25 22:59:01.214284", + "name": "Bank Account User", + "restrict_to_domain": null, + "role_name": "Bank Account User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-03-25 22:59:01.216079", + "name": "Bank Account Manager", + "restrict_to_domain": null, + "role_name": "Bank Account Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-03-25 22:59:01.217867", + "name": "Online Payments Authorizer", + "restrict_to_domain": null, + "role_name": "Online Payments Authorizer", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-03-25 22:59:24.063811", + "name": "RazorpayX Integration Manager", + "restrict_to_domain": null, + "role_name": "RazorpayX Integration Manager", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-04-14 12:27:16.728200", + "name": "Purchase 333 Role", + "restrict_to_domain": null, + "role_name": "Purchase 333 Role", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-05-30 20:54:50.133644", + "name": "Staff", + "restrict_to_domain": null, + "role_name": "Staff", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-06-19 19:02:13.179433", + "name": "Purchase Order Role", + "restrict_to_domain": null, + "role_name": "Purchase Order Role", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-07-02 21:13:40.477240", + "name": "CT SALES ENTRY", + "restrict_to_domain": null, + "role_name": "CT SALES ENTRY", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-07-15 11:42:12.274988", + "name": "CT PURCHASE ENTRY", + "restrict_to_domain": null, + "role_name": "CT PURCHASE ENTRY", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-08-19 20:33:55.587986", + "name": "CT SENIOR EXPENSE APPROVER", + "restrict_to_domain": null, + "role_name": "CT SENIOR EXPENSE APPROVER", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 1, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 1, + "modified": "2025-09-15 11:33:07.690827", + "name": "DELETE", + "restrict_to_domain": null, + "role_name": "DELETE", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2025-09-15 11:38:49.475985", + "name": "CT ADMIN", + "restrict_to_domain": null, + "role_name": "CT ADMIN", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2026-01-26 17:40:52.627609", + "name": "dailycashapprovel", + "restrict_to_domain": null, + "role_name": "dailycashapprovel", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2022-12-07 21:36:44.284615", + "name": "Insights Admin", + "restrict_to_domain": null, + "role_name": "Insights Admin", + "two_factor_auth": 0 + }, + { + "desk_access": 0, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2022-12-07 21:36:44.121244", + "name": "Insights User", + "restrict_to_domain": null, + "role_name": "Insights User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2026-01-27 14:09:19.344180", + "name": "CT CASH APPROVER", + "restrict_to_domain": null, + "role_name": "CT CASH APPROVER", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2026-01-27 14:09:39.722368", + "name": "CT CASH APPROVER UNDER 5000", + "restrict_to_domain": null, + "role_name": "CT CASH APPROVER UNDER 5000", + "two_factor_auth": 0 + } +] \ No newline at end of file diff --git a/calicut_textiles/fixtures/workflow.json b/calicut_textiles/fixtures/workflow.json new file mode 100644 index 0000000..a56650e --- /dev/null +++ b/calicut_textiles/fixtures/workflow.json @@ -0,0 +1,807 @@ +[ + { + "docstatus": 0, + "doctype": "Workflow", + "document_type": "Bank Account", + "is_active": 0, + "modified": "2025-03-25 22:59:08.696040", + "name": "Payment Integration Bank Account 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": "Payment Integration Bank Account Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Draft", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "Bank Account User", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Draft", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "Bank Account Manager", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Draft", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "Bank Account Manager", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Pending Approval", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "System Manager", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Rejected", + "update_field": "disabled", + "update_value": "1", + "workflow_builder_id": null + }, + { + "allow_edit": "System Manager", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Cancelled", + "update_field": "disabled", + "update_value": "1", + "workflow_builder_id": null + }, + { + "allow_edit": "System Manager", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Approved", + "update_field": "disabled", + "update_value": "0", + "workflow_builder_id": null + } + ], + "transitions": [ + { + "action": "Request Approval", + "allow_self_approval": 1, + "allowed": "Bank Account User", + "condition": null, + "next_state": "Pending Approval", + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Draft", + "workflow_builder_id": null + }, + { + "action": "Request Approval", + "allow_self_approval": 1, + "allowed": "Bank Account Manager", + "condition": null, + "next_state": "Pending Approval", + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Draft", + "workflow_builder_id": null + }, + { + "action": "Request Approval", + "allow_self_approval": 1, + "allowed": "All", + "condition": null, + "next_state": "Pending Approval", + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Draft", + "workflow_builder_id": null + }, + { + "action": "Reject", + "allow_self_approval": 1, + "allowed": "Bank Account Manager", + "condition": null, + "next_state": "Rejected", + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Pending Approval", + "workflow_builder_id": null + }, + { + "action": "Approve", + "allow_self_approval": 1, + "allowed": "Bank Account Manager", + "condition": null, + "next_state": "Approved", + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Pending Approval", + "workflow_builder_id": null + }, + { + "action": "Cancel", + "allow_self_approval": 1, + "allowed": "System Manager", + "condition": null, + "next_state": "Cancelled", + "parent": "Payment Integration Bank Account Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Approved", + "workflow_builder_id": null + } + ], + "workflow_data": null, + "workflow_name": "Payment Integration Bank Account Workflow", + "workflow_state_field": "payment_integration_workflow_state" + }, + { + "docstatus": 0, + "doctype": "Workflow", + "document_type": "Payment Entry", + "is_active": 0, + "modified": "2025-03-25 22:59:08.977362", + "name": "Payment Integration Payment Entry 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": "Payment Integration Payment Entry Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Draft", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "Online Payments Authorizer", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Draft", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "Online Payments Authorizer", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Pending Approval", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "System Manager", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Rejected", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "System Manager", + "avoid_status_override": 0, + "doc_status": "1", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Approved", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "System Manager", + "avoid_status_override": 0, + "doc_status": "2", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Cancelled", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + } + ], + "transitions": [ + { + "action": "Request Approval", + "allow_self_approval": 1, + "allowed": "All", + "condition": null, + "next_state": "Pending Approval", + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Draft", + "workflow_builder_id": null + }, + { + "action": "Request Approval", + "allow_self_approval": 1, + "allowed": "Online Payments Authorizer", + "condition": null, + "next_state": "Pending Approval", + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Draft", + "workflow_builder_id": null + }, + { + "action": "Approve", + "allow_self_approval": 1, + "allowed": "Online Payments Authorizer", + "condition": null, + "next_state": "Approved", + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Pending Approval", + "workflow_builder_id": null + }, + { + "action": "Reject", + "allow_self_approval": 1, + "allowed": "Online Payments Authorizer", + "condition": null, + "next_state": "Rejected", + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Pending Approval", + "workflow_builder_id": null + }, + { + "action": "Cancel", + "allow_self_approval": 1, + "allowed": "System Manager", + "condition": null, + "next_state": "Cancelled", + "parent": "Payment Integration Payment Entry Workflow", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Approved", + "workflow_builder_id": null + } + ], + "workflow_data": null, + "workflow_name": "Payment Integration Payment Entry Workflow", + "workflow_state_field": "payment_integration_workflow_state" + }, + { + "docstatus": 0, + "doctype": "Workflow", + "document_type": "Bank Account", + "is_active": 0, + "modified": "2025-08-12 17:22:41.821450", + "name": "Bank Account Approval", + "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": "Bank Account Approval", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Pending", + "update_field": null, + "update_value": "Pending", + "workflow_builder_id": null + }, + { + "allow_edit": "Accounts Manager", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Bank Account Approval", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Approved", + "update_field": null, + "update_value": "Approved", + "workflow_builder_id": null + } + ], + "transitions": [ + { + "action": "Approve", + "allow_self_approval": 1, + "allowed": "Accounts Manager", + "condition": null, + "next_state": "Approved", + "parent": "Bank Account Approval", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Pending", + "workflow_builder_id": null + }, + { + "action": "Reject", + "allow_self_approval": 1, + "allowed": "Accounts Manager", + "condition": null, + "next_state": "Pending", + "parent": "Bank Account Approval", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Approved", + "workflow_builder_id": null + } + ], + "workflow_data": null, + "workflow_name": "Bank Account Approval", + "workflow_state_field": "workflow_state" + }, + { + "_liked_by": "[]", + "docstatus": 0, + "doctype": "Workflow", + "document_type": "Expense Claim", + "is_active": 1, + "modified": "2025-08-20 10:49:37.565862", + "name": "Expense Claim", + "override_status": 1, + "send_email_alert": 0, + "states": [ + { + "allow_edit": "Employee Self Service", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Expense Claim", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Pending", + "update_field": "approval_status", + "update_value": "Draft", + "workflow_builder_id": null + }, + { + "allow_edit": "Expense Approver", + "avoid_status_override": 0, + "doc_status": "1", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Expense Claim", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Approved", + "update_field": "approval_status", + "update_value": "Approved", + "workflow_builder_id": null + }, + { + "allow_edit": "Expense Approver", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Expense Claim", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Rejected", + "update_field": "approval_status", + "update_value": "Rejected", + "workflow_builder_id": null + } + ], + "transitions": [ + { + "action": "Approve", + "allow_self_approval": 1, + "allowed": "Expense Approver", + "condition": null, + "next_state": "Approved", + "parent": "Expense Claim", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Pending", + "workflow_builder_id": null + }, + { + "action": "Reject", + "allow_self_approval": 1, + "allowed": "Expense Approver", + "condition": null, + "next_state": "Rejected", + "parent": "Expense Claim", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Pending", + "workflow_builder_id": null + } + ], + "workflow_data": null, + "workflow_name": "Expense Claim", + "workflow_state_field": "workflow_state" + }, + { + "docstatus": 0, + "doctype": "Workflow", + "document_type": "Sales Invoice", + "is_active": 0, + "modified": "2025-09-16 09:57:03.982364", + "name": "Sales Invoice", + "override_status": 1, + "send_email_alert": 0, + "states": [ + { + "allow_edit": "CT SALES ENTRY", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Sales Invoice", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Draft", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "CT SALES ENTRY", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Sales Invoice", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Check Out", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "CT SALES ENTRY", + "avoid_status_override": 0, + "doc_status": "1", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Sales Invoice", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Submitted", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "CT SALES ENTRY", + "avoid_status_override": 0, + "doc_status": "1", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Sales Invoice", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Cancel Requested", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "CT SALES ENTRY", + "avoid_status_override": 0, + "doc_status": "2", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Sales Invoice", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Cancelled", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + } + ], + "transitions": [ + { + "action": "Check Out", + "allow_self_approval": 1, + "allowed": "CT SALES ENTRY", + "condition": null, + "next_state": "Check Out", + "parent": "Sales Invoice", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Draft", + "workflow_builder_id": null + }, + { + "action": "Submit", + "allow_self_approval": 1, + "allowed": "CT CASH COUNTER", + "condition": null, + "next_state": "Submitted", + "parent": "Sales Invoice", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Check Out", + "workflow_builder_id": null + }, + { + "action": "Return to Draft", + "allow_self_approval": 1, + "allowed": "CT CASH COUNTER", + "condition": null, + "next_state": "Draft", + "parent": "Sales Invoice", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Check Out", + "workflow_builder_id": null + }, + { + "action": "Request Cancel", + "allow_self_approval": 1, + "allowed": "CT SALES ENTRY", + "condition": null, + "next_state": "Cancel Requested", + "parent": "Sales Invoice", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Submitted", + "workflow_builder_id": null + }, + { + "action": "Approve Cancel", + "allow_self_approval": 1, + "allowed": "CT ADMIN", + "condition": null, + "next_state": "Cancelled", + "parent": "Sales Invoice", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Cancel Requested", + "workflow_builder_id": null + } + ], + "workflow_data": null, + "workflow_name": "Sales Invoice", + "workflow_state_field": "workflow_state" + }, + { + "docstatus": 0, + "doctype": "Workflow", + "document_type": "Daliy Cash Entry", + "is_active": 1, + "modified": "2026-01-27 14:10:38.140008", + "name": "Daliy Cash", + "override_status": 0, + "send_email_alert": 0, + "states": [ + { + "allow_edit": "CT CASH APPROVER", + "avoid_status_override": 0, + "doc_status": "0", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Daliy Cash", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Pending", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "CT CASH APPROVER UNDER 5000", + "avoid_status_override": 0, + "doc_status": "1", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Daliy Cash", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Approved", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + }, + { + "allow_edit": "CT CASH APPROVER", + "avoid_status_override": 0, + "doc_status": "1", + "is_optional_state": 0, + "message": null, + "next_action_email_template": null, + "parent": "Daliy Cash", + "parentfield": "states", + "parenttype": "Workflow", + "send_email": 1, + "state": "Approved", + "update_field": null, + "update_value": null, + "workflow_builder_id": null + } + ], + "transitions": [ + { + "action": "Approve", + "allow_self_approval": 1, + "allowed": "CT CASH APPROVER", + "condition": null, + "next_state": "Approved", + "parent": "Daliy Cash", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Pending", + "workflow_builder_id": null + }, + { + "action": "Approve", + "allow_self_approval": 1, + "allowed": "CT CASH APPROVER UNDER 5000", + "condition": "doc.amount>5000", + "next_state": "Approved", + "parent": "Daliy Cash", + "parentfield": "transitions", + "parenttype": "Workflow", + "send_email_to_creator": 0, + "state": "Pending", + "workflow_builder_id": null + } + ], + "workflow_data": null, + "workflow_name": "Daliy Cash", + "workflow_state_field": "workflow_state" + } +] \ No newline at end of file diff --git a/calicut_textiles/fixtures/workflow_action.json b/calicut_textiles/fixtures/workflow_action.json new file mode 100644 index 0000000..7e776d0 --- /dev/null +++ b/calicut_textiles/fixtures/workflow_action.json @@ -0,0 +1,464 @@ +[ + { + "completed_by": null, + "completed_by_role": null, + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-07-14 16:21:40.394544", + "name": "6j2s1ploa7", + "permitted_roles": [ + { + "parent": "6j2s1ploa7", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Accounts Manager" + } + ], + "reference_doctype": "Bank Account", + "reference_name": "ICICI BANK 0226 Uniforms", + "status": "Open", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-08-01 16:31:41.951151", + "name": "0cervpf2nd", + "permitted_roles": [ + { + "parent": "0cervpf2nd", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00002", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-08-12 11:51:18.054565", + "name": "99dcprame9", + "permitted_roles": [ + { + "parent": "99dcprame9", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00003", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-08-16 17:47:03.998577", + "name": "a8s00fukcd", + "permitted_roles": [ + { + "parent": "a8s00fukcd", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00004", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-08-30 14:17:55.101775", + "name": "6iqf777q3b", + "permitted_roles": [ + { + "parent": "6iqf777q3b", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00007", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-09-12 12:24:51.491938", + "name": "09ai5le5tm", + "permitted_roles": [ + { + "parent": "09ai5le5tm", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00008", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": null, + "completed_by_role": null, + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-09-16 09:43:28.421490", + "name": "4pokvb2152", + "permitted_roles": [ + { + "parent": "4pokvb2152", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "CT SALES ENTRY" + } + ], + "reference_doctype": "Sales Invoice", + "reference_name": "RT2507746", + "status": "Open", + "user": null, + "workflow_state": "Draft" + }, + { + "completed_by": null, + "completed_by_role": null, + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-09-16 09:54:58.374910", + "name": "40g7m6ug57", + "permitted_roles": [ + { + "parent": "40g7m6ug57", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "CT SALES ENTRY" + } + ], + "reference_doctype": "Sales Invoice", + "reference_name": "CT2503123", + "status": "Open", + "user": null, + "workflow_state": "Draft" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-09-24 13:17:46.267404", + "name": "blambgon6o", + "permitted_roles": [ + { + "parent": "blambgon6o", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00009", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-10-01 09:00:13.080393", + "name": "dglicf4eiq", + "permitted_roles": [ + { + "parent": "dglicf4eiq", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00010", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-10-10 16:11:48.565280", + "name": "0n9tvl2fl7", + "permitted_roles": [ + { + "parent": "0n9tvl2fl7", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00011", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-10-18 13:17:11.019744", + "name": "bevmn9d4oj", + "permitted_roles": [ + { + "parent": "bevmn9d4oj", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00012", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-11-03 17:34:28.379480", + "name": "31nrh1jb4o", + "permitted_roles": [ + { + "parent": "31nrh1jb4o", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00013", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-11-18 16:24:50.448145", + "name": "5968b38993", + "permitted_roles": [ + { + "parent": "5968b38993", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00014", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-11-25 10:44:38.387396", + "name": "ak3feinbg1", + "permitted_roles": [ + { + "parent": "ak3feinbg1", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00015", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-12-05 08:32:26.227848", + "name": "cs4md9lk47", + "permitted_roles": [ + { + "parent": "cs4md9lk47", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00016", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-12-12 17:10:42.953384", + "name": "du2dpjmbk2", + "permitted_roles": [ + { + "parent": "du2dpjmbk2", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00017", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-12-20 09:21:58.051138", + "name": "99dc1ardm0", + "permitted_roles": [ + { + "parent": "99dc1ardm0", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00018", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "sirilvasudev@gmail.com", + "completed_by_role": "Expense Approver", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2025-12-31 12:17:04.264345", + "name": "fh8isi1ejq", + "permitted_roles": [ + { + "parent": "fh8isi1ejq", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "Expense Approver" + } + ], + "reference_doctype": "Expense Claim", + "reference_name": "HR-EXP-2025-00019", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "Administrator", + "completed_by_role": "dailycashapprovel", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2026-01-26 17:42:53.324440", + "name": "1llr4hsuqq", + "permitted_roles": [ + { + "parent": "1llr4hsuqq", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "dailycashapprovel" + } + ], + "reference_doctype": "Daliy Cash Entry", + "reference_name": "1lkpdr28kd", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": null, + "completed_by_role": null, + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2026-01-27 13:13:59.218033", + "name": "froa2n25n2", + "permitted_roles": [ + { + "parent": "froa2n25n2", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "dailycashapprovel" + } + ], + "reference_doctype": "Daliy Cash Entry", + "reference_name": "frneghftuu", + "status": "Open", + "user": null, + "workflow_state": "Pending" + }, + { + "completed_by": "Administrator", + "completed_by_role": "dailycashapprovel", + "docstatus": 0, + "doctype": "Workflow Action", + "modified": "2026-01-27 13:33:01.367046", + "name": "r0l1aj9l5k", + "permitted_roles": [ + { + "parent": "r0l1aj9l5k", + "parentfield": "permitted_roles", + "parenttype": "Workflow Action", + "role": "dailycashapprovel" + } + ], + "reference_doctype": "Daliy Cash Entry", + "reference_name": "r0lju4vo5t", + "status": "Completed", + "user": null, + "workflow_state": "Pending" + } +] \ No newline at end of file diff --git a/calicut_textiles/fixtures/workflow_state.json b/calicut_textiles/fixtures/workflow_state.json new file mode 100644 index 0000000..fdab3f2 --- /dev/null +++ b/calicut_textiles/fixtures/workflow_state.json @@ -0,0 +1,92 @@ +[ + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": null, + "modified": "2025-03-25 22:59:08.453950", + "name": "Pending Approval", + "style": "Warning", + "workflow_state_name": "Pending Approval" + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": "", + "modified": "2025-08-19 20:51:53.552810", + "name": "Pending Senior Approval", + "style": "", + "workflow_state_name": "Pending Senior Approval" + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": null, + "modified": "2025-03-25 22:59:08.453973", + "name": "Cancelled", + "style": "Danger", + "workflow_state_name": "Cancelled" + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": "", + "modified": "2025-09-15 15:37:32.257346", + "name": "Check Out", + "style": "Success", + "workflow_state_name": "Check Out" + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": "", + "modified": "2025-09-15 15:27:38.246177", + "name": "Cancel Requested", + "style": "", + "workflow_state_name": "Cancel Requested" + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": null, + "modified": "2025-03-25 22:59:08.453931", + "name": "Submitted", + "style": "Primary", + "workflow_state_name": "Submitted" + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": "remove", + "modified": "2024-07-30 18:01:52.987894", + "name": "Rejected", + "style": "Danger", + "workflow_state_name": "Rejected" + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": null, + "modified": "2025-03-25 22:59:08.453892", + "name": "Draft", + "style": "Danger", + "workflow_state_name": "Draft" + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": "question-sign", + "modified": "2024-07-24 11:15:05.648402", + "name": "Pending", + "style": "", + "workflow_state_name": "Pending" + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": "ok-sign", + "modified": "2024-07-30 18:01:52.987135", + "name": "Approved", + "style": "Success", + "workflow_state_name": "Approved" + } +] \ No newline at end of file diff --git a/calicut_textiles/hooks.py b/calicut_textiles/hooks.py index 141d41f..fcea814 100644 --- a/calicut_textiles/hooks.py +++ b/calicut_textiles/hooks.py @@ -282,7 +282,12 @@ fixtures =[ {"dt":"Custom Field","filters":[["module","in",["Calicut Textiles"]]]}, - {"dt":"Property Setter","filters":[["module","in",["Calicut Textiles"]]]} + {"dt":"Role"}, + {"dt":"Property Setter","filters":[["module","in",["Calicut Textiles"]]]}, + {"dt":"Workflow"}, + {"dt":"Workflow State"}, + {"dt":"Workflow Action"} + ]