Unify document type selection forms

Merge all document type selection forms into a single smarter form
that can perform permission filtering and allow single or multiple
selections.

This commit also add the document type selection for submit
view to the file metadata app.

This commit also updates the document type selection views
for the OCR, document parsing, and upload wizard to use
the new document type selection form and removes their
respective document type selection forms.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-14 18:06:23 -04:00
parent 315e70309b
commit 4d46ca3343
16 changed files with 279 additions and 145 deletions

View File

@@ -126,6 +126,7 @@ class DocumentParsingApp(MayanAppConfig):
ModelPermission.register(
model=DocumentType, permissions=(
permission_document_type_parsing_setup,
permission_parse_document
)
)
ModelPermission.register_inheritance(