diff --git a/HISTORY.rst b/HISTORY.rst index 8512a1b6ce..38aaf3e370 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -175,7 +175,7 @@ - On multi part emails keep the original From and Subject properties for all subsequent parts if the sub parts don't specify them. Fixes issue #481. Thanks to Robert Schöftner @robert.schoeftner for the report and debug information. - Don't provide a default for the scanner source adf_mode. Some scanners throw an error even when the selection if supported. - +- Add a "Quick Download" action to reduce the number of steps to download a single document. GitLab issue #338. 2.7.3 (2017-09-11) ================== diff --git a/docs/releases/3.0.rst b/docs/releases/3.0.rst index b5a9fdf09a..c8a42843a1 100644 --- a/docs/releases/3.0.rst +++ b/docs/releases/3.0.rst @@ -521,6 +521,7 @@ Other changes worth mentioning - On multi part emails keep the original From and Subject properties for all subsequent parts if the sub parts don't specify them. Fixes issue #481. Thanks to Robert Schöftner @robert.schoeftner for the report and debug information. - Don't provide a default for the scanner source adf_mode. Some scanners throw an error even when the selection if supported. +- Add a "Quick Download" action to reduce the number of steps to download a single document. GitLab issue #338. Removals -------- @@ -530,10 +531,10 @@ Removals Known issues ------------ -The newly added 'flanker' dependency used to process email, produces a number of -warning on the console that are imposible to turn off. These are not critical and -related to coding practices in the library. All warning from flanker can be -ignored. +The newly added 'flanker' dependency used to process email, produces a number +of warnings on the console that are imposible to turn off. These are not +critical and are related to coding practices in the library. All warning +from flanker can be ignored. Example: "WARNING:flanker.addresslib._parser.parser:Symbol 'domain' is unreachable" @@ -595,6 +596,7 @@ Bugs fixed or issues closed * `GitLab issue #278 `_ Detect non migrated models * `GitLab issue #302 `_ 'New Document' button available to users who do not have permission * `GitLab issue #332 `_ Add option to pass configuration parameters to the OCR backend as mentioned in #319 +* `GitLab issue #338 `_ Quick download link in documents list view * `GitLab issue #370 `_ Advanced search appears to OR the fields instead of AND them * `GitLab issue #380 `_ Features removal for version 3.0 * `GitLab issue #405 `_ Add wizard steps from external apps diff --git a/mayan/apps/documents/apps.py b/mayan/apps/documents/apps.py index de9bfce44e..3416c1e1d4 100644 --- a/mayan/apps/documents/apps.py +++ b/mayan/apps/documents/apps.py @@ -65,17 +65,17 @@ from .links import ( link_document_page_rotate_right, link_document_page_view, link_document_page_view_reset, link_document_page_zoom_in, link_document_page_zoom_out, link_document_pages, link_document_preview, - link_document_print, link_document_properties, link_document_restore, - link_document_trash, link_document_type_create, link_document_type_delete, - link_document_type_edit, link_document_type_filename_create, - link_document_type_filename_delete, link_document_type_filename_edit, - link_document_type_filename_list, link_document_type_list, - link_document_type_setup, link_document_update_page_count, - link_document_version_download, link_document_version_list, - link_document_version_return_document, link_document_version_return_list, - link_document_version_revert, link_document_version_view, - link_duplicated_document_list, link_duplicated_document_scan, - link_trash_can_empty + link_document_print, link_document_properties, link_document_quick_download, + link_document_restore, link_document_trash, link_document_type_create, + link_document_type_delete, link_document_type_edit, + link_document_type_filename_create, link_document_type_filename_delete, + link_document_type_filename_edit, link_document_type_filename_list, + link_document_type_list, link_document_type_setup, + link_document_update_page_count, link_document_version_download, + link_document_version_list, link_document_version_return_document, + link_document_version_return_list, link_document_version_revert, + link_document_version_view, link_duplicated_document_list, + link_duplicated_document_scan, link_trash_can_empty ) from .literals import ( CHECK_DELETE_PERIOD_INTERVAL, CHECK_TRASH_PERIOD_INTERVAL, @@ -441,7 +441,8 @@ class DocumentsApp(MayanAppConfig): links=( link_document_edit, link_document_document_type_edit, link_document_print, link_document_trash, - link_document_download, link_document_clear_transformations, + link_document_quick_download, link_document_download, + link_document_clear_transformations, link_document_clone_transformations, link_document_update_page_count, ), sources=(Document,) diff --git a/mayan/apps/documents/links.py b/mayan/apps/documents/links.py index 6324645be2..bc1c537d0b 100644 --- a/mayan/apps/documents/links.py +++ b/mayan/apps/documents/links.py @@ -110,6 +110,10 @@ link_document_print = Link( permissions=(permission_document_print,), text=_('Print'), view='documents:document_print', args='resolved_object.id' ) +link_document_quick_download = Link( + permissions=(permission_document_download,), text=_('Quick download'), + view='documents:document_download', args='resolved_object.id' +) link_document_update_page_count = Link( args='resolved_object.pk', permissions=(permission_document_tools,), text=_('Recalculate page count'),