Before this commit, clicking on view buttons with attribute `close="1"` in FormViewDialog didn't close the dialog once the button action was performed. This commit fixes that issue, and ensures we do not reload the record if we're about to close the dialog. X-original-commit: 32d211a6fd5c121fa5f556f1d78b79421edc6f68 Part-of: odoo/odoo#102149