Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1985 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 24
1190
1
pro 23
1448
1
čvc 23
2495
2
říj 24
6437
2
zář 24
4383