Since Owl 2 changes in compatibility layer, destroy hook is called from the compatibility layer on a component already destroyed (from the documents mixin in this case). There is probably a fix to do in the compatibility layer, but the current PR is an easy fix to avoid the crash on the documents app in the meantime. task-2761082 closes odoo/odoo#84364 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>