Before this commit, the user was not notified when he closed the tab or the browser while modifying a record. Now, the user will be asked to confirm the close if there is at least one invalid field. task id: 2994132 closes odoo/odoo#102990 X-original-commit: 3fcc36786453f3006974f5fd0fa395ad5d07d9a2 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>