Before this commit, the linktool was disabling the editor observer until it was destroyed. This messed up with the undo/redo and the isDirty. This commit only disable the observer when necessary. task-2836351 Forward-port-of: #90064 X-original-commit: 57c98f314332bbb4c3225942e1d3748eb131d8b0 Part-of: odoo/odoo#91074