Don't limit one archive unit per archive transfer
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Nov 2016 17:00:05 +0100
changeset 1962 3729d83ac7e4
parent 1961 c6614962180f
child 1969 40e17295c68b
Don't limit one archive unit per archive transfer Every SEDA version allow several top level archive units or equivalent. Closes #16070768
views/archivetransfer.py
--- a/views/archivetransfer.py	Wed Nov 09 16:55:29 2016 +0100
+++ b/views/archivetransfer.py	Wed Nov 09 17:00:05 2016 +0100
@@ -202,11 +202,6 @@
         return {'__redirectparams': 'tab=' + self.__regid__,
                 'unit_type': 'unit_content'}
 
-    def display_add_button(self, entity):
-        rset = entity.related(*self.rtype_role_targets[0][:2])
-        if not rset:
-            super(ArchiveTransferArchiveUnitsTab, self).display_add_button(entity)
-
 
 class ArchiveTransferRelatedTransfersTab(viewlib.SubObjectsTab):
     """Tab for previous transfers related to an archive transfer"""