Place the document cabinet list under the document's preview

(order=1). GitLab issue #417.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-08-02 21:13:53 -04:00
parent b7361059e2
commit 11995e432b

View File

@@ -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
)
)