From 1265c161616070f88ab1480cc9ef00e73711bd41 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 22 Apr 2019 21:30:01 -0400 Subject: [PATCH] Improve OCR navigation Signed-off-by: Roberto Rosario --- HISTORY.rst | 1 + docs/releases/3.2.rst | 1 + mayan/apps/ocr/apps.py | 11 ++++------- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 1601662acc..fd706f19d3 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -118,6 +118,7 @@ * Move the favorite document views to their own module. * Replace DocumentTypeSelectioForm with an improved version that does filtering. +* Update OCR links activation. 3.1.11 (2019-04-XX) =================== diff --git a/docs/releases/3.2.rst b/docs/releases/3.2.rst index c5d950e1f0..22888b1453 100644 --- a/docs/releases/3.2.rst +++ b/docs/releases/3.2.rst @@ -150,6 +150,7 @@ Other changes * Move the favorite document views to their own module. * Replace DocumentTypeSelectioForm with an improved version that does filtering. +* Update OCR links activation. Removals -------- diff --git a/mayan/apps/ocr/apps.py b/mayan/apps/ocr/apps.py index 5578a4b53e..b513cb47ca 100644 --- a/mayan/apps/ocr/apps.py +++ b/mayan/apps/ocr/apps.py @@ -148,17 +148,14 @@ class OCRApp(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_ocr_content, link_document_ocr_errors_list, - link_document_ocr_download + link_document_ocr_errors_list, + link_document_ocr_download, link_document_submit ), sources=( - 'ocr:document_content', 'ocr:document_ocr_error_list', - 'ocr:document_ocr_download', + 'ocr:document_submit', 'ocr:document_ocr_content', + 'ocr:document_ocr_download', 'ocr:document_ocr_error_list' ) ) menu_secondary.bind_links(