Ir al contenido
Menú
Se marcó esta pregunta
2061 Vistas

I want to override errordialog with my custom module how to override the errordialog 

odoo.define("error_manager.custom_error_dialog", function (require) {    

"use strict";
    const { Component } =require("@odoo/owl");    

// const { ErrorDialog } = require("web.core").ErrorDialog;    

const { ErrorDialog } =  require("@web/core/errors/error_dialogs");    

const { registry } =  require("@web/core/registry");
    console.log("Custom");    // Extend the ErrorDialog component        ErrorDialog.include({        

init:function (parent, options, error) {            

console.log(error);        },    });});

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
may 24
1344
1
dic 23
1544
1
jul 23
2795
2
oct 24
6683
2
sept 24
4603