seitime-frappe/frappe/model
Suraj Shetty c71c132ba2 Workflow actions (#5598)
* Init workflow actions

- WIP code
- Add hooks to create and update
workflow action on document status changes.
- Tweak listview to show host document on list view item click
- Add new doctype "Pending Workflow Action"
- Add allow_self_approval check in Workflow master

* Rename doctypes

- Rename "Workflow Action" to "Workflow Action Master"
- Rename "Pending Workflow Action" to "Workflow Action"
- Remove irrelevant files

* Clear old workflow action on docstatus change

- Add check for user permission before creating a workflow action record
- Make doctype changes to support the Workflow Action  System

* Show host document only if workflow action status is open

* Send workflow action mail notifications

* Add patch to rename `tabWorkflow Action` to `tab Workflow Master`

- Rename table to retain data in `tabWorkflow Action` as it
will be overwritten with new structure on migration

* Enqueue email

* Remove unused files

* Add hook for custom has_permission

* Optimize send_workflow_action_email method

* Add permission_query_condition hook

* Show notification based on status

* Override get_form_link in list view

* Refactor workflow action

- Add action link
- update workflow action hooks

* Avoid repeated creation of Worklow Actions

- Update hooks entry to avoid unwanted method call

* Fix error with frappe.db.count usage

* Fix ui/ux for Workflow Action

- Fix action url and improve response on action button click
- Fix workflow action template style

* Fix Codacy

* Add self approval check

* Fix codacy

* Fix test

* Fix python version confilct and a permission error

* Fix incorrect 'this' reference

* Update with requested changes

* Add next action email template option

* Fix string formatting

* Refactor workflow Action

- Make process_workflow_action smaller

* Fix bugs and errors due to refactor

* Fix workflow field caching

* Add a workflow action test

* Fix bugs with email template
2018-05-30 11:24:49 +05:30
..
utils [Enhance] New DocField - 'Fetch From' (#5563) 2018-05-23 11:07:57 +05:30
__init__.py python 3 fixes 2018-03-31 18:15:43 +05:30
base_document.py [Enhance] New DocField - 'Fetch From' (#5563) 2018-05-23 11:07:57 +05:30
create_new.py Permission improvements (#5494) 2018-05-04 13:13:29 +05:30
db_query.py Permission improvements (#5494) 2018-05-04 13:13:29 +05:30
db_schema.py Update db_schema.py (#5622) 2018-05-28 16:02:32 +05:30
delete_doc.py Account for documents with integer names so they can be deleted. (#5567) 2018-05-22 11:23:59 +05:30
docfield.py Add translation support for DocFields (#5002) 2018-02-16 15:12:12 +05:30
document.py [fix] merge conflicts 2018-04-19 11:16:28 +05:30
dynamic_links.py Added order by in_create for dynamic link query (#3849) 2017-08-04 10:55:38 +05:30
mapper.py fetch_from fixes in mapper 2018-05-25 09:55:58 +05:30
meta.py Fetch from property is now applicable for all fieldtypes except no_value_fields (#5624) 2018-05-29 10:54:45 +05:30
naming.py Merge branch 'master' into develop 2018-04-04 11:23:21 +05:30
rename_doc.py Rebuild help for docs which have been renamed (#5521) 2018-05-06 11:59:00 +05:30
sync.py [enhance] Add condition in transitions and move workflow to server-side (#5399) 2018-04-11 00:38:13 -08:00
workflow.py Workflow actions (#5598) 2018-05-30 11:24:49 +05:30