[ui] management tab doesn't apply to archive unit reference
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 22 Jul 2016 11:24:41 +0200
changeset 1493 b43b95943a80
parent 1492 00a4b2034080
child 1494 5b2cd16061b3
[ui] management tab doesn't apply to archive unit reference
views/archiveunit.py
--- a/views/archiveunit.py	Thu Jul 21 15:49:47 2016 +0200
+++ b/views/archiveunit.py	Fri Jul 22 11:24:41 2016 +0200
@@ -162,7 +162,7 @@
     """Display management information about an archive unit."""
 
     __regid__ = 'seda_au_management_tab'
-    __select__ = tabs.PrimaryTab.__select__ & is_instance('SEDAArchiveUnit')
+    __select__ = is_instance('SEDAArchiveUnit') & ~is_archive_unit_ref()
 
     rtype_role_targets = [
         ('seda_storage_rule', 'object', None),