It is very easy to add the ability to archive records in Odoo. 


All that is needed is to add the field below to the model of the module you are trying to add it to.


Odoo will automatically see the field in the model and add the archive abilities on its own.


active = fields.Boolean('Active', default=True)