Have a form view in a dialog (action in target=new) The create/write of that model throws an error. Before this commit, the "Oh snap!" dialog was displayed, but makes little sense in a dialog. After this commit, the old UserError dialog is displayed. closes odoo/odoo#102764 X-original-commit: d36f1708219f63fae5a86b6c1e81b328ca96b347 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>