From 11995e432bf09079bf543386e7da9525c99ee076 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 2 Aug 2017 21:13:53 -0400 Subject: [PATCH] Place the document cabinet list under the document's preview (order=1). GitLab issue #417. Signed-off-by: Roberto Rosario --- mayan/apps/cabinets/apps.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mayan/apps/cabinets/apps.py b/mayan/apps/cabinets/apps.py index d084326184..cc609b40b4 100644 --- a/mayan/apps/cabinets/apps.py +++ b/mayan/apps/cabinets/apps.py @@ -71,6 +71,13 @@ class CabinetsApp(MayanAppConfig): model=Cabinet, related='get_root', ) + SourceColumn( + source=Document, label=_('Cabinets'), + func=lambda context: widget_document_cabinets( + document=context['object'], user=context['request'].user + ), order=1 + ) + document_page_search.add_model_field( field='document_version__document__cabinets__label', label=_('Cabinets') @@ -119,10 +126,3 @@ class CabinetsApp(MayanAppConfig): 'cabinets:document_cabinet_remove' ) ) - - SourceColumn( - source=Document, label=_('XCabinets'), - func=lambda context: widget_document_cabinets( - document=context['object'], user=context['request'].user - ) - ) \ No newline at end of file