diff --git a/muk_utils/models/ir_attachment.py b/muk_utils/models/ir_attachment.py index 7e563f0..9f7a174 100644 --- a/muk_utils/models/ir_attachment.py +++ b/muk_utils/models/ir_attachment.py @@ -102,7 +102,7 @@ class IrAttachment(models.Model): @api.multi def migrate(self, batch_size=None): - batch_size = batch_size or 5 + batch_size = batch_size or batch_size storage_location = self._storage().upper() batches = math.ceil(len(self) / batch_size) for index, attachment in enumerate(self, start=1):