diff --git a/addons/base_automation/static/src/js/base_automation_error_dialog.js b/addons/base_automation/static/src/js/base_automation_error_dialog.js index b3f19dd2528..971f6eeafe1 100644 --- a/addons/base_automation/static/src/js/base_automation_error_dialog.js +++ b/addons/base_automation/static/src/js/base_automation_error_dialog.js @@ -1,10 +1,10 @@ /** @odoo-module */ -import { ErrorDialog } from "@web/core/errors/error_dialogs"; +import { RPCErrorDialog } from "@web/core/errors/error_dialogs"; import { registry } from "@web/core/registry"; import { useService } from "@web/core/utils/hooks"; -export class BaseAutomationErrorDialog extends ErrorDialog { +export class BaseAutomationErrorDialog extends RPCErrorDialog { setup() { super.setup(...arguments); const { id, name } = this.props.data.context.base_automation; @@ -49,6 +49,7 @@ export class BaseAutomationErrorDialog extends ErrorDialog { views: [[false, "form"]], type: "ir.actions.act_window", view_mode: "form", + target: "new", }); this.props.close(); }