I have created a widget in Odoo. It is a simple button which opens a popup window with some content and a Close button.
The problem is when i click on the Close button, my popup is closed but my button is also removed from the DOM.
How do i stop this... i want my widget to be permanent.
Please share your code so that we can find exact issue and help you.