Without this commit, there was no warning displayed when clicking on a button that would make the user lose all he entered in the widget, which is insonsistent with other odoo widgets. opw-684276