Skip to Content
Menú
This question has been flagged
1972 Vistes

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
Related Posts Respostes Vistes Activitat
2
de maig 24
1182
1
de des. 23
1447
1
de jul. 23
2484
2
d’oct. 24
6406
2
de set. 24
4363