Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer
Publications associées Réponses Vues Activité
2
mai 24
1238
1
déc. 23
1472
1
juil. 23
2554
2
oct. 24
6482
2
sept. 24
4429