Set system parameter ``ir_attachment.location`` to ``hashed_db`` to activate saving by checksum. Run ``force_storage``, method of ``ir.attachment``, to move existing attachments.