Add new app to handle all dependencies

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-05-03 01:03:25 -04:00
parent 11e13cea1d
commit ea3b513ae3
208 changed files with 7847 additions and 45933 deletions

View File

@@ -21,6 +21,7 @@ from mayan.apps.navigation.classes import SourceColumn
from mayan.celery import app
from .classes import DocumentStateHelper, WorkflowAction
from .dependencies import * # NOQA
from .handlers import (
handler_index_document, handler_launch_workflow, handler_trigger_transition
)
@@ -91,6 +92,7 @@ class DocumentStatesApp(MayanAppConfig):
WorkflowAction.initialize()
ModelAttribute(
model=Document,
name='workflow.< workflow internal name >.get_current_state',
@@ -106,7 +108,6 @@ class DocumentStatesApp(MayanAppConfig):
'selected workflow'
)
)
ModelPermission.register(
model=Document, permissions=(permission_workflow_view,)
)