This commit fixes the behavior of the FormView in a dialog. Since the view is only visible in edition, it is no longer necessary to keep the dialog open after the save has been processed. If the save has been successful, the dialog now closes as expected. A test has been added to assert this behavior. X-original-commit: 86f68fe072a50baf49b9a8cf06f9c1e2541756e3 Part-of: odoo/odoo#102522