By default, Odoo will not allow you to cancel an invoice once it has been validated. Since accounting entries have been recorded, we are not able to delete or update them. In such cases, you can create a refund invoice and reconcile them so that accounts are reflected properly. However, in some cases cancelling an invoice is necessary.