Adding event listener in on_attach_callback need to be removed in on_detach_callback. Before this commit on_detach_callback was not implemented in control panel. After this commit we can use on_detach_callback. Needed for task ID: 1934261 closes odoo/odoo#30758