diff --git a/HISTORY.rst b/HISTORY.rst index fd706f19d3..676a16bf1f 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -119,6 +119,7 @@ * Replace DocumentTypeSelectioForm with an improved version that does filtering. * Update OCR links activation. +* Update document parsing link activation. 3.1.11 (2019-04-XX) =================== diff --git a/docs/releases/3.2.rst b/docs/releases/3.2.rst index 22888b1453..5f5af169be 100644 --- a/docs/releases/3.2.rst +++ b/docs/releases/3.2.rst @@ -151,6 +151,7 @@ Other changes * Replace DocumentTypeSelectioForm with an improved version that does filtering. * Update OCR links activation. +* Update document parsing link activation. Removals -------- diff --git a/mayan/apps/document_parsing/apps.py b/mayan/apps/document_parsing/apps.py index 22883c51a0..1f3683c3d7 100644 --- a/mayan/apps/document_parsing/apps.py +++ b/mayan/apps/document_parsing/apps.py @@ -153,18 +153,17 @@ class DocumentParsingApp(MayanAppConfig): menu_multi_item.bind_links( links=(link_document_submit_multiple,), sources=(Document,) ) - menu_object.bind_links( - links=(link_document_submit,), sources=(Document,) - ) menu_secondary.bind_links( links=( - link_document_content, link_document_parsing_errors_list, - link_document_content_download + link_document_content_download, + link_document_parsing_errors_list, + link_document_submit ), sources=( 'document_parsing:document_content', 'document_parsing:document_content_download', 'document_parsing:document_parsing_error_list', + 'document_parsing:document_submit', ) ) menu_tools.bind_links(